search
Homephp教程PHP开发ORACLE database system global zone

System Global Area
SGA (System Global Area) is a set of shared buffer storage areas allocated by the ORACLE system for instances. It is used to store database data and control information to achieve the management and operation of database data. Figure 2-3 shows The relationship between the instance and SGA and database.
SGA is divided into the following parts:
(1) Shared pool.
(2) Data block buffer.
(3) Log buffer.
(4) Dictionary buffer.
The following are introduced respectively:
 Note:
The size of SGA should be less than half of the physical memory.
In the ORACLE system, all data exchanges between users and the ORACLE database system must pass through the SGA area.
1. Shared Pool
consists of a shared SQL area and a data dictionary area. The parameter shared_pool_size determines the size of the shared pool. The shared SQL area includes:
(1) The text of the SQL or PL/SQL statement.
(1) Syntax analysis form of SQL or PL/SQL statement.
(2) Execution plan of SQL or PL/SQL statement.
 Note: shared_pool_size=physical memory × (15~20)% is the lower limit for OPS.
2. Data block buffer
is used to store data read from data files. Its size is determined by the following two parameters:
DB_BLOCK_SIZE determines the size of the data block, generally 2K or 4K.
DB_BLOCK_BUFFERS determines the number of data blocks.
DB_BUFFERS=DB_BLOCK_BUFFERS×DB_BLOCK_SIZE=physical memory×(15~25)%, take the upper limit for OPS. This value should be as large as possible.
3. Log buffer
Backs up the modified buffer blocks in the database buffer in the form of record items, and these record items will be written to the log file. The size of the log buffer is determined by the parameter LOG_BUFFER
4. The dictionary buffer
is used to store data dictionary information lines.
5. General principles for SGA setting size
When setting various parameters to adjust the SGA size, ensure that it is less than half of the physical memory.
The calculation method of SGA is as follows:
SGA=DB_BLOCK_BUFFERS×DB_BLOCK_SIZE+SHARE_POOL_SIZE+SORT_AREA_SIZE+1M+3×DB_BLOCK_SIZE×(CPUs+2)×PARALELL_MAX_SREVERS
 Note:
OPS only has the last item.
SORT_AREA_SIZE: Sorting area, the number of concurrent users is large, the value should be large when sorting is required.
PARALELL_MAX_SREVERS: 2×Number of CPUs×4×Number of concurrent users. This value cannot be modified for a single CPU.

The above is the global area of ​​the ORACLE database system. For more related articles, please pay attention to the PHP Chinese website (www.php.cn)!


Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.