Investigate the Oracle Library CacheHit Ratio
2016-03-22 00:07
417 查看
Investigate the Oracle Library CacheHit Ratio
By RichardNiemiecAlow 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).
相关文章推荐
- Oracle Concepts - Disk IO and the Shared Pool
- Top Oracle shared pool scripts
- Oracle Concepts - Guidelines for Tuning the Oracle Shared Pool
- Oracle Concepts - General Guidelines for Shared Pool Sizing
- Oracle12c的数据库向11g导进的方法
- Oracle Shared Pool Advisory Utility
- Oracle Concepts - Shared Pool
- oracle中rownum的理解
- Oracle新建数据库和用户及表空间
- oracle学习笔记系列------oracle操作例子的专用表
- ORACLE 11G flashback 相关讨论
- oracle学习笔记系列------oracle 基本操作之基本函数的用法
- c3p0连接oracle数据库单元测试
- Oracle归档日志管理
- Oracle数据库语句大全
- 第十七讲--Oracle存储结构:段区块
- oracle基于odbc建立dblink访问sqlserver
- sql中的text字段如何导入oracle
- oracle的客户,就可以使用pl/sql访问远程oracle 数据库的方法
- oracle 用 imp 导入数据 指定用户,密码,ip , 端口 和表单