for update被锁定解锁
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了for update被锁定解锁相关的知识,希望对你有一定的参考价值。
查找被锁定的表,用户,session:
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:
alter system kill session ‘sid, serial#‘;
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:
alter system kill session ‘sid, serial#‘;
以上是关于for update被锁定解锁的主要内容,如果未能解决你的问题,请参考以下文章
锁定数据行 for update和for update nowait