You are on page 1of 1

SELECT NVL(a.

event, 'ON CPU') AS event,


COUNT(*) AS total_wait_time
FROM v$active_session_history a
WHERE a.sample_time > SYSDATE - 5/(24*60) -- 5 mins
GROUP BY a.event
ORDER BY total_wait_time DESC;

You might also like