码迷,mamicode.com
首页 > 数据库 > 详细

Oracle表解锁

时间:2015-03-15 22:50:27      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:

网搜

--第一步 查看被锁表
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‘;

 

Oracle表解锁

标签:

原文地址:http://www.cnblogs.com/liudi1992/p/4340559.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!