select a.event,
count(*) cnt,
min(a.SECONDS_IN_WAIT) min_wait,
round(avg(a.SECONDS_IN_WAIT)) avg_wait,
max(a.SECONDS_IN_WAIT) max_wait
from v$session_wait a, v$session b
where a.sid > 7
and b.sid = a.sid
and b.status = 'ACTIVE'
group by a.event
order by 2 desc;
|