Library Cache Miss Ratio alarm

当图书馆缓存命中率低于设定阈值时触发报警。该比率反映发出SQL解析请求时在共享池中找到匹配SQL语句的频率。未找到匹配项时必须解析并加载SQL语句到图书馆缓存中,这会导致高CPU消耗及可能的图书馆缓存锁竞争。使用绑定变量而非文字可以减少解析开销。

The Library Cache Miss Ratio alarm occurs when the library cache hit ratio falls

below a given threshold.


The library cache hit ratio describes the frequency with which a matching SQL

statement is found in the Shared pool when a SQL parse request is issued by a

session. If a matching SQL statement is not found in the library cache, the SQL

statement must be parsed and loaded into the library cache. Low hit rates therefore

result in high CPU consumption (from parsing), and possible contention for library

cache latches (when the new SQL is loaded into the library cache). An acceptable

rate for the library cache get hit rate is 90-95% or higher.

The most frequent cause of high miss rates in the library cache is the use of

literals rather than bind variables in SQL statements. Bind variables reduce parse

overhead by allowing otherwise identical SQL statements with different query

parameters to be matched in the shared pool. Bind variables, however, preclude the

use of column histograms and are therefore not suitable in all circumstances.

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

转载于:http://blog.itpub.net/35489/viewspace-84743/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值