Oracle表解锁

网搜

--第一步 查看被锁表
select b.owner,b.object_name, b.object_id,l.session_id,l.locked_mode
from v$locked_object l, dba_objects b
where b.object_id=l.object_id;
--第二步 select do.object_id ,do.object_name from dba_objects do where do.OWNER=ISTAUDITand do.object_id in (98565) ;
--第三步 select t2.username,t2.sid,t2.serial#,t2.logon_time ,t2.ACTION,t1.LOCKED_MODE from v$locked_object t1,v$session t2 where t1.session_id=t2.sid and object_id in (98565‘) order by t2.logon_time ;
--第四步 alter system kill session 137,11352‘;

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。