session_waits.sql

select
  e.event,
  e.time_waited
from
  sys.v_$session_event  e
where
  e.sid = &Sid
union all
select
  n.name,
  s.value
from
  sys.v_$statname  n,
  sys.v_$sesstat  s
where
  s.sid = &Sid and
  n.statistic# = s.statistic# and
  n.name = 'CPU used by this session'
order by
  2 desc

你可能感兴趣的:(session)