In oracle10g, you don't have to specify the size of each part of the SGA with each of the following parameters. That is, you do not need to first evaluate the size of the SGA components and specify the components in the Init<sid>.ora initial parameter file. (Some components, of course, can be unspecified if they are not used. For example, Java_pool_size).
Shared_pool_size
Java_pool_size
Large_pool_size
Db_cache_size
A new parameter sga_target can be used in 10g to set the maximum SGA value required for the real column and replace the above parameters.
Suppose that setting the Sga_target to 152M indicates that the SGA maximum is 152M. All SGA components, such as shared pool, buffer Cache,large pool, are allocated from the Java pool. Oracle automatically assigns the initial values to each component and dynamically adjusts the components during the run
Size. No manual intervention is required.
In this way, you do not have to explicitly define the size of the shared Pool,buffer Pool,large pool and the Java pool as long as the sga_target is set.
For example, define SGA_TARGET=152M (block size is 8k).
Sql> Show Parameter Db_block_size
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
Db_block_size integer 8192
Sql> Show Parameter Sga_target
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
Sga_target Big Integer 152M
Oracle automatically assigns memory to the components:
Sql> Show SGA
Total System Global area 159383552 bytes
Fixed Size 1218268 bytes
Variable Size 67111204 bytes
Database buffers 88080384 bytes
Redo buffers 2973696 bytes
There are a few things to note about using the Sga_target parameter:
1. When using Sga_target, if the sga_max_size is not set, or if less than Sga_target is set, then sga_max_size will be equal to Sga_target.
Sql> Show Parameter SGA
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
LOCK_SGA Boolean FALSE
PRE_PAGE_SGA Boolean FALSE
Sga_max_size Big Integer 152M
Sga_target Big Integer 152M
2. When Sga_target is dynamically adjustable, its value cannot be greater than sga_max_size.
Sql> alter system set sga_target=160m; Alter system set SGA_TARGET=160M * ERROR at line 1:ora-02097:parameter cannot to modified because specified value is INV Alid ora-00823:specified value of sga_target greater than sga_max_size
Also to be noted are:
The Sga_target parameter does not involve the following memory settings:
Log Buffer.
Buffer cache for keep,recycle or non-database default db_block_size.
Fixed SGA and other internally allocated portions.
To say exactly:
is Sga_target minus log_buffer,db_keep_buffer_cache,db_recycle_buffer_cache,db_nk_cache_size. The rest can be assigned to Shared_pool_ Size,db_buffer_cache,java_pool_size,large_pool_size,streams_pool_size. This has not been known before, ashamed.
:)