http://www.eygle.com/rss/20070514.html
--查询库中的等待事件
select event, count(*)
from v$session
where username != user
group by event
having count(*) > 4;
-- 查询数据库自启动后ITL等待
select t.OWNER, t.OBJECT_NAME, t.STATISTIC_NAME, t.OBJECT_TYPE, t.VALUE
from v$segment_statistics t
where t.STATISTIC_NAME = 'ITL waits'
and t.VALUE > 20
order by value desc;
--查询ITL等待索引的ini_trans
select i.table_name, i.index_name, i.ini_trans, i.pct_free, i.pct_increase
from user_indexes i
where i.index_name = '&index_name';
--查询ITL等待表的ini_trans
select t.table_name, t.ini_trans, t.pct_free, t.pct_used, t.pct_increase
from user_tables t
where t.table_name = '&table_name'
增加initrans个数,只是针对以后的新块起效。
以前的块如果想生效,需要在修改此参数后,重整表数据。如重建表,或者move该表和rebuild 索引。