/*查询所有被锁数据*/
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;
/*解锁*/
alter system kill session ‘sid,serial#‘;
本文出自 “十里稻花香” 博客,请务必保留此出处http://5880861.blog.51cto.com/5870861/1583419
原文地址:http://5880861.blog.51cto.com/5870861/1583419