Oracle查询死锁与解锁SQL语句
作者:互联网
--锁表查询
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';
标签:gv,sid,object,死锁,session,kill,SQL,Oracle,id 来源: https://www.cnblogs.com/kxxx/p/12978553.html