oracle 檢視鎖表和解鎖

孫悟空空發表於2016-08-31

oracle 檢視鎖表和解鎖

檢視鎖表

SELECT l.session_id sid, s.serial#, l.locked_mode,l.oracle_username,  

  l.os_user_name,s.machine, s.terminal, o.object_name, s.logon_time  

  FROM v$locked_object l, all_objects o, v$session s  

  WHERE l.object_id = o.object_id  

  AND l.session_id = s.sid  

  ORDER BY sid, s.serial# ;  

解鎖

  ALTER system KILL session 'SID,serial#';   

參考部落格

相關文章