oracle 锁表后,如何定位,并解锁

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/liuao107329/article/details/53423343

查询锁表信息  : 

SELECT object_name, machine, s.sid, s.serial# 
FROM gv$locked_object l, dba_objects o, gv$session s 
WHERE l.object_id = o.object_id 
AND l.session_id = s.sid; 

解锁 :

-- 释放SESSION SQL: 
-- alter system kill session 'sid, serial#'; 
ALTER system kill session '23, 1647'; 


展开阅读全文

没有更多推荐了,返回首页