set linesize 120col event format a40col object_name format a40select * from(select dba_objects.object_name,
dba_objects.object_type,active_session_history.event,sum(active_session_history.wait_time +active_session_history.time_waited) ttl_wait_time
from v$active_session_history active_session_history,dba_objects
whereactive_session_history.sample_time between sysdate - 1/24 and sysdateand active_session_history.current_obj# = dba_objects.object_idgroup by dba_objects.object_name, dba_objects.object_type, active_session_history.eventorder by 4 desc)where rownum < 6;
Thursday, 11 September 2014
Which Database Objects Experienced the Most Number of Waits in the Past One Hour
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment