top sessions
http://db.geeksinsight.com/tools-scripts/ REF: set pagesize 100 set linesize 250 col INSTANCE_NUMBER format 99 col SESSION_ID format 99999 col BLOCKING_INST_ID format 99 col event format a20 col WAIT_CLASS format a15 col PROGRAM format a20 col MODULE format a16 col p3 format 99999999999999999999 select sql_id,to_char(SAMPLE_TIME,'YYYYMMDD-HH24:MI:SS'), INSTANCE_NUMBER,SESSION_ID,PROGRAM,MODULE,EVENT, CURRENT_OBJ#,WAIT_CLASS,BLOCKING_INST_ID, BLOCKING_SESSION, p3 from dba_hist_active_sess_history where INSTANCE_NUMBER= 3 and SESSION_ID = 2437 and sample_time between to_date('16-06-18 11:00:00','DD-MM-YY HH24:MI:SS') and to_date('16-06-18 11:04:00','DD-MM-YY HH24:MI:SS') and event ='library cache lock' order by sample_id; col USERNAME for a10 col machine for a30 col Text for a50 wrap on select se.SID, ss.serial#, ss.username, ss.machine, ss.sql_id, to_char...