oracle中查看表是否被锁
查看表是否被锁
SELECT /*+ rule*/
a.sid, b.owner, object_name, object_type
FROM v$lock a, all_objects b
WHERE TYPE = 'TM'
and a.id1 = b.object_id;
查到的都是被锁的表
这样可以把它杀掉
SELECT sid,serial# FROM v$session WHERE sid = &sid;
alter system kill session ‘sid,serial#’;
oracle中查看表是否被锁
最新推荐文章于 2024-09-13 17:09:00 发布