1. 程式人生 > >【oracle效能】檢視阻塞表的相關資訊

【oracle效能】檢視阻塞表的相關資訊

oracle檢視阻塞表的相關資訊

select t2.username,t2.sid || ',' ||t2.serial# as "sid_terial#",t2.SQL_ID,do.owner,
do.OBJECT_NAME,t2.osuser,t2.machine,t2.logon_time,t2.PREV_EXEC_START,sa.SQL_TEXT,t2.MODULE
from v$locked_object t1,v$session t2, dba_objects do, v$sqlarea sa
where t1.session_id=t2.sid and t1.OBJECT_ID = do.OBJECT_ID and t2.sql_id = sa.SQL_ID
order by t2.logon_time desc;