oracle查看会话锁定的所有对象代码分享
select session_id sid, owner, name, type, mode_held held, mode_requested request
from DBA_DDL_LOCKS
where session_id=(select sid from V$mystat where rownum=1)
/
(注:owner 列是所锁定对象的所有者)
from DBA_DDL_LOCKS
where session_id=(select sid from V$mystat where rownum=1)
/
(注:owner 列是所锁定对象的所有者)