1. 程式人生 > >Oracle物件被鎖如何處理

Oracle物件被鎖如何處理

1 檢視被鎖住的物件

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;

2 解鎖

將1中查詢出的sid和serial#,作為引數

alter system kill session '2400,21533';