轉:Oracle 解鎖Record is locked by another use

mengzhaoliang發表於2008-08-15

 

 

Oracle 解鎖Record is locked by another use

--檢視鎖
select t2.username,t2.sid,t2.serial#,t2.logon_time
from v$locked_object t1,v$session t2
where t1.session_id=t2.sid order by t2.logon_time;


--alter system kill session 'sid,serial#';
--把鎖給KILL掉
alter system kill session '151,14678';

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

相關文章