喜欢就来多看看

buffer_busy_waits.sql

上一篇 / 下一篇  2007-02-13 00:00:00 / 个人分类:回味&引申

column block_class format a30
column buffer_pool format a30

select
w.class block_class,
w.count total_waits,
w.time time_waited
from
sys.v_$waitstat w
where
w.count > 0
order by 3 desc
/
select
d.tablespace_name,
sum(x.count) total_waits,
sum(x.time) time_waited
from
sys.x_$kcbfwait x,
sys.dba_data_files d
where
x.inst_id = userenv('Instance') and
x.count > 0 and
d.file_id = x.indx + 1
group by
d.tablespace_name
order by 3 desc
/
select
p.bp_name buffer_pool,
sum(s.bbwait) total_waits
from
sys.x_$kcbwds s,
sys.x_$kcbwbpd p
where
s.inst_id = userenv('Instance') and
p.inst_id = userenv('Instance') and
s.set_id >= p.bp_lo_sid and
s.set_id <= p.bp_hi_sid and
p.bp_size != 0
group by
p.bp_name
having
sum(s.bbwait) > 0


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-12-05  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 11530
  • 日志数: 1129
  • 图片数: 1
  • 书签数: 1
  • 建立时间: 2007-12-13
  • 更新时间: 2008-06-02

RSS订阅

Open Toolbar