SGA related init params

来源:互联网 发布:网络剧发行方式 编辑:程序博客网 时间:2024/06/04 18:25

SGA related init params

 

Auto tuned SGA parameters

  • db_cache_size
  • shared_pool_size
  • large_pool_size
  • java_pool_size
These parameters are called auto tuned because automatic shared memory managment can dynamically change the sizes of these pools if it is enabled.

DB_CACHE_SIZE

The value of this parameter affects the size of the SGA: It sets the size of the default buffer pool.
According to metalink note 223299.1, this is one of the top parameters affecting performance.
With Oracle 10g, one can turn on Automatic Shared Memory Management which distributes shared memory as required. See alsosga_target.

JAVA_POOL_SIZE

The value of this parameter affects the size of the SGA.
With Oracle 10g, one can turn on Automatic Shared Memory Management which distributes shared memory as required. See alsosga_target.

SHARED_POOL_SIZE

The value of this parameter affects the size of the SGA or more appropriately the size of the shared pool within the SGA.
Apparently, when installing JServer, this parameter must at least be set to 24M.

LARGE_POOL_SIZE

With Oracle 10g, one can turn on Automatic Shared Memory Management which distributes shared memory as required. See alsosga_target.

Manual SGA parameters

  • db_keep_cache_size
  • db_recycle_cache_size
  • db_NNk_cache_size
    NN being one of 2, 4, 8, 16, 32
  • log_buffer
  • streams_pool_size

DB_KEEP_CACHE_SIZE

According to metalink note 223299.1, this is one of the top parameters affecting performance.

DB_RECYCLE_CACHE_SIZE

According to metalink note 223299.1, this is one of the top parameters affecting performance.

LOG_BUFFER

Up to 9i

The value of this parameter defines the size of the redo log buffer. As the redo log buffer is part of the SGA, it affects the size of the SGA as well.
Setting this value to anything greater than 3M is useless as thelog buffer is flushed anyway when it is filled up to 1M or when it is reaches one third of its capacity, whichever comes first. (Thanks toWilliam White who notified me of an error here).

10g

From 10g onwards, there is a lot more to do about the initialization parameterlog_buffer. Also, Metalink note 351857.1 states that the size of the log buffer cannot be changed with this paramter from 10gR2, instead, the size will be set by Oracle.

STREAMS_POOL_SIZE

Other parameters

See also other init parameters.

DB_BLOCK_BUFFERS

The value of this parameter affects the size of the SGA, or more precisely, the size of the buffer cache. This parameter is deprecated since 9i, db_cache_size should be used instead.
With Oracle 10g, one can turn on Automatic Shared Memory Management which distributes shared memory (of which the buffer cache is part) as required. See alsosga_target.

DB_BLOCK_CHECKSUM

See checking block integrity before writing to disk.

DB_BLOCK_SIZE

Determines the size of a database blocks.

SGA_MAX_SIZE

sga_max_size sets the maximum value for sga_target
If sga_max_size is less than the sum of db_cache_size + log_buffer + shared_pool_size + large_pool_size at initialization time, then the value of sga_max_size is ignored.
According to metalink note 223299.1, this is one of the top parameters affecting performance.

SGA_TARGET

This parameter is new with Oracle 10g. It specifies the total amaount of SGA memory available to an instance. Setting this parameter makes Oracle distribute the available memory among various components - such asshared pool (for SQL and PL/SQL),Java pool, large_pool and buffer cache - as required.
This new feature is called Automatic Shared Memory Management. With ASMM, the parameters java_pool_size, shared_pool_size, large_pool_size and db_cache_size need not be specified explicitely anymore.
sga_target cannot be higher than sga_max_size.

Thanks

Thanks to Guy Lambregts who helped me improving this page (sectionlog_buffer and a typo).

原创粉丝点击