Shared Pool
The shared pool portion of the SGA contains the library cache, the dictionary cache, buffers for parallel execution messages, and control structures.
The total size of the shared pool is determined by the initialization parameterSHARED_POOL_SIZE
. The default value of this parameter is 8MB on 32-bit platforms and 64MB on 64-bit platforms. Increasing the value of this parameter increases the amount of memory reserved for the shared pool.
Library Cache
The library cache includes the shared SQL areas, private SQL areas (in the case of a shared server configuration), PL/SQL procedures and packages, and control structures such as locks and library cache handles.
Shared SQL areas are accessible to all users, so the library cache is contained in the shared pool within the SGA.
因为Shared SQL areas要被所有用户访问,所以包含了Shared SQL areas的library cache要位于SGA上的shared pool中。
注释:
Memory Area |
Dedicated Server |
Shared Server |
Nature of session memory |
Private |
Shared |
Location of the persistent area |
PGA |
SGA |
Location of part of the run-time area for |
PGA |
PGA |
Location of the run-time area for DML/DDL statements |
PGA |
PGA |