Show Session Waits for a Given Session ID
-- -- Show session waits for a given Session ID. -- SET PAUSE ON SET PAUSE 'Press Return to Continue' SET PAGESIZE 60 SET LINESIZE 300 COLUMN username FORMAT A20 COLUMN sid FORMAT 9999 COLUMN serial# FORMAT 9999 COLUMN event FORMAT A40 SELECT NVL(s.username, '(oracle)') AS username, s.sid, s.serial#, se.event, se.total_waits, se.total_timeouts, se.time_waited, se.average_wait, se.max_wait, se.time_waited_micro FROM v$session_event se, v$session s WHERE s.sid = se.sid AND s.sid = &Session_ID ORDER BY se.time_waited DESC /