喜欢就来多看看

system_times.sql

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

This script reports the total waiting time for both routine and resource waits, together with the CPU time used. The relative contribution of each type of wait to overall response times, and the potential benefit of tuning actions, can be estimated from this information.

select
e.event,
e.time_waited
from
sys.v_$system_event e
where
e.event != 'Null event' and
e.event != 'rdbms ipc message' and
e.event != 'pipe get' and
e.event != 'virtual circuit status' and
e.event != 'lock manager wait for remote message' and
e.event not like '% timer' and
e.event not like 'SQL*Net message from %'
union all
select
s.name,
s.value
from
sys.v_$sysstat s
where
s.name = 'CPU used by this session'
order by
2 desc
/



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