檢視長時間鎖定物件的程式,並kill掉

shilei1發表於2016-01-26
select object_name,machine,s.sid,s.serial# from v$locked_object l,dba_objects o,v$session s where l.object_id=o.object_id and l.session_id=s.sid;
select spid,osuser,s.program from v$session s,v$process p where s.paddr=p.addr and s.sid=66
alter system kill session '66,46515';

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/196700/viewspace-1982448/,如需轉載,請註明出處,否則將追究法律責任。

相關文章