Size of the Database Buffer Cache (82)

本文介绍了Oracle数据库中缓存管理的相关知识,包括如何通过DB_BLOCK_SIZE设置标准块大小,以及如何利用DB_KEEP_CACHE_SIZE和DB_RECYCLE_CACHE_SIZE调整KEEP和RECYCLE缓冲池的大小。增大缓存大小能提高数据请求的命中率,并且可以在实例运行时通过ALTER SYSTEM语句动态调整。

Oracle supports multiple block sizes in a database. The standard block size is used for

the SYSTEM tablespace. You specify the standard block size by setting the initialization

parameter DB_BLOCK_SIZE. Legitimate values are from 2K to 32K.

Optionally, you can also set the size for two additional buffer pools, KEEP and

RECYCLE, by setting DB_KEEP_CACHE_SIZE and DB_RECYCLE_CACHE_SIZE. These

three parameters are independent of one another.

The cache has a limited size, so not all the data on disk can fit in the cache. When the

cache is full, subsequent cache misses cause Oracle to write dirty data already in the

cache to disk to make room for the new data. (If a buffer is not dirty, it does not need to

be written to disk before a new block can be read into the buffer.) Subsequent access to

any data that was written to disk results in additional cache misses.

The size of the cache affects the likelihood that a request for data results in a cache hit.

If the cache is large, it is more likely to contain the data that is requested. Increasing

the size of a cache increases the percentage of data requests that result in cache hits.

You can change the size of the buffer cache while the instance is running, without

having to shut down the database. Do this with the ALTER SYSTEM statement.

Use the fixed view V$BUFFER_POOL to track the sizes of the different cache

components and any pending resize operations.

Oracle支持多个块值 ,标准块大小由DB_BLOCK_SIZE指定 , 合法的值从2k32K.

DB_KEEP_CACHE_SIZE 指定KEEP池大小 , DB_RECYCLE_CACHE_SIZE指定RECYCLE池大小

增大cache的大小, 增加了请求数据的cache命中率 , 可以使用alter system

动态改变cache的大小, v$buffer_pool列出了cache组件的大小等信息。[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-978185/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10599713/viewspace-978185/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值