Oracle 参数 DB_nK_CACHE_SIZE 官方解释,作用,如何配置最优化建议

本站中文解释

Oracle参数 DB_nK_CACHE_SIZE 是指数据库缓存,指一个大小为nK的计数器,其中n代表字节的倍数,比如4K,8K,16K等。DB_nK_CACHE_SIZE的作用是:用来控制数据库页块的大小,以及系统在不同的内存中缓存的量,从而提高查询效率,缩短查询时间。

正确设置DB_nK_CACHE_SIZE的方法是:首先应该根据负载模式和硬件配置进行计算,计算结果不多等于设备上内存的2/3,最大不能超过内存大小的2/3。如果内存越大,缓存大小可以设置得越大;如果负载模式发生变化,target还要注意调整一下。实际上,这参数的设置是配置性能上最重要的一个。

官方英文解释

DB_nK_CACHE_SIZE (where n = 2, 4, 8, 16, 32) specifies the size of the cache for the nK buffers.

Property Description

Parameter type

Big integer

Syntax

DB_[2 | 4 | 8 | 16 | 32]K_CACHE_SIZE = integer [K | M | G]

Default value

0 (additional block size caches are not configured by default)

Modifiable

ALTER SYSTEM

Modifiable in a PDB

No

Range of values

Minimum: 0 (values greater than zero are automatically modified to be either the granule size * number of processor groups, or 4 MB * number of CPUs, whichever is greater)

Maximum: operating system-dependent

Basic

No

You can set this parameter only when DB_BLOCK_SIZE has a value other than nK. For example, if DB_BLOCK_SIZE=4096, then it is illegal to specify the parameter DB_4K_CACHE_SIZE (because the size for the 4 KB block cache is already specified by DB_CACHE_SIZE).

Do not set this parameter to zero if there are any online tablespaces with an nK block size.

Operating system-specific block size restrictions apply. For example, you cannot set DB_32K_CACHE_SIZE if the operating system’s maximum block size is less than 32 KB. Also, you cannot set DB_2K_CACHE_SIZE if the minimum block size is greater than 2 KB.

See Also:

Your operating system-specific Oracle documentation for more information on block size restrictions


数据运维技术 » Oracle 参数 DB_nK_CACHE_SIZE 官方解释,作用,如何配置最优化建议