Oracle查询哪个表锁住

前端之家收集整理的这篇文章主要介绍了Oracle查询哪个表锁住前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

* --查锁


SELECT /*+ rule */ s.username,decode(l.type,'TM','TABLE LOCK','TX','ROW LOCK',NULL ) LOCK_LEVEL,o.owner,o.object_name,o.object_type,s.sid,s.serial#,s.terminal,s.machine,s.program,s.osuser FROM v$session s,v$lock l,dba_objects o WHERE l.sid = s.sid AND l.id1 = o.object_id(+) AND s.username is NOT NULL and s.username = 'NEWSALE';--s.sid,s.serial#




--执行脚本杀掉死锁:alter system kill session '1279,27499';

原文链接:https://www.f2er.com/oracle/213663.html

猜你在找的Oracle相关文章