工作经验-解锁表

查看 哪些表 被锁了

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#';

ALTER system kill session '23, 1647';

posted @ 2018-12-27 22:17  你真的好美  阅读(132)  评论(0编辑  收藏  举报