ORACLE 如何查询被锁定表及如何解锁释放session
时间:2021-07-01 10:21:17
帮助过:70人阅读
锁表查询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‘;
ORACLE 如何查询被锁定表及如何解锁释放session
标签: