col event format a60select event, total_waits, time_waitedfrom v$system_event e, v$event_name nwhere n.event_id = e.event_idand n.wait_class !='Idle'and n.wait_class = (select wait_class from v$session_wait_classwhere wait_class !='Idle'group by wait_class havingsum(time_waited) = (select max(sum(time_waited)) from v$session_wait_classwhere wait_class !='Idle'group by (wait_class))) order by 3;
No comments:
Post a Comment