--查詢被鎖的表
select * from v$session where sid in (
select lockobj.session_id
from v$locked_object lockobj left join dba_objects objs
on lockobj.object_id = objs.object_id
left join v$session sess
on lockobj.session_id = sess.sid)
--kill session
alter system kill session 'sid,serial#';
解決oracle表鎖死
oracle中檢視表是否被鎖 select rule a.sid,b.owner,object name,b.object type from v lock a,all objects b where a.type tm and a.id1 b.object id 查到的都是被鎖的表 這樣可以把它殺...
Oracle鎖表處理
1 查詢出被鎖的表的session id,和serial 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.logo...
oracle鎖表處理
1 select from v locked object 查出被鎖定的物件,其中object id是物件的id,session id是被鎖定物件有session id 2 select object name,object type from dba objects where object id...