首页 > 数据库 > 数据库开发技术 > outln下的ol$nodes有6百多万数据
http://www.itpub.net/showthread.php?s=&threadid=881497
处理如下:
前几天sp报表出现了:"db file scattered read "
15,129,548 37,247 45.83
所占比例很高,并且buffer hit不到50%,很奇怪,我的Buffer Cache: 2,560M
应该不会出现这个问题
我找到orderd by gets,发现第一句就是:
CPU Elapsd
Old
Buffer Gets Executions Gets per Exec %Total Time (s) Time (s)
Hash Value
--------------- ------------ -------------- ------ -------- ---------
----------
260,861,668 4,649 56,111.4 55.4 ######## 50688.50
837035650
select node_id, parent_id, node_type, node_textlen, node_textoff
from outln.ol$nodes where ol_name = :1 order by node_id, parent
_id
我count了一下outln.ol$nodes,发现有6百多万数据,并且在ol_name上没有索引,
所以造成大量的全表扫描,出现了db file scattered read的问题,后修改参数
alter system set create_stored_outlines=' scope=both;
并且
删除了ol$nodes表的数据
第二天看就没有db file scattered read的问题了,并且buffer hit提高到99%多
看来这个数据库维护和调优是一个长期的事情,必须加强对数据库的监控才能解决
问题!
[@more@]来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7916042/viewspace-979550/ ,如需转载,请注明出处,否则将追究法律责任。