Investigate the Oracle Library CacheHit Ratio

Investigate the Oracle Library CacheHit Ratio

By RichardNiemiec

Alow library cache hit ratio is a symptom of one of several problems. The sharedand/or Java pools may be too small; the SHARED_POOL_RESERVED_SIZE may be too small;CURSOR_SHARING may need to be set to FORCE; there may be inefficient sharing ofSQL, PL/SQL, or Java code; or there may be insufficient use of bind variables.Investigate which application code is being used over time and how efficientlyit is used (code sharing). Monitor the shared and Java pool freespace overtime. If the amount of free memory in the shared and Java pools is relativelyhigh, no ORA-04031 errors are occurring, and the library cache hit ratio islow, then poor code sharing is probably occurring.

Thequeries in the following listings help you investigate this area. I includesome V$ view queries here because of the applicable nature to this subject.

Librarycache hit ratio

Librarycache reload ratio

 

Librarycache high-use objects (make this a top 10 list by adding “WHERE ROWNUM<11”)

Librarycache object sizes

Sharedpool object sharing efficiency (you may want to limit these)

 

 

Ahigh percentage of reloads indicates that the shared and/or Java pools are toosmall, code sharing is insufficient, and possibly also large code objects arerepeatedly being used. Monitor the application code used over time. Ifparticular large code objects are identified as frequently used, considerpinning them and/or increasing the size of the SHARED_POOL_RESERVED_SIZE. Iffeatures such as Shared Servers, Recovery Manager, or Parallel Query are used,consider a larger SHARED_POOL_SIZE and/or larger LARGE_POOL_SIZE (if settingparameters like MEMORY_TARGET and/or SGA_TARGET, ensure you always set aminimum for the SHARED_POOL_SIZE even if you use these other parameters).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值