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='ISTAUDIT' and 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';

 

posted @ 2015-03-15 21:52  wanghx  阅读(358)  评论(0编辑  收藏  举报