ITL等待

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 索引。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值