--查询锁表
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';
Oracle锁表查询及解锁
最新推荐文章于 2024-01-10 19:10:03 发布