10.2出现SQL Memory Manager latch类型的latch free

客户环境出现了明显的LATCH FREE等待事件,而等待的latch类型为sql memory manager latch。
详细版本为10.2.0.5 RAC for Hp-ux,问题出现时,AWR的TOP 5信息为:
Event Waits Time(s) Avg Wait(ms) % Total Call Time Wait Class
latch free 387,948 1,686,005 4,346 60.8 Other
CPU time 219,941 7.9
gc buffer busy 19,927,407 8,938 0 .3 Cluster
gc current block 2-way 6,143,005 5,328 1 .2 Cluster
db file sequential read 789,784 4,744 6 .2 User I/O

在TOP 5中latch free所占DBTIME的比例已经超过了60,显然在这种情况下,数据库无法正常的处理请求,操作系统上CPU处于100%繁忙状态。
查询MOS,发现导致问题的原因在于PGA的设置不足,详见文档Bug 9732503 latch free waits for SQL Memory Manager latch / extra child cursors,虽然当前的PGA命中率并不是很低,达到了96.88%,不过其他方面都与bug描述的非常接近。
这个bug影响的版本包括10.2.0.4、10.2.0.5和11.2.0.1,Oracle在11.2.0.2和11.1.0.7中被FIXED,对于当前10.2的版本,最简单的解决这个问题的方法就是提高PGA_AGGREGATE_TARGET的值。
客户将PGA_AGGREGATE_TARGET从5G调整到10G后,这个问题没有再次出现。

This entry was posted in ORACLE and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *