浅沫记忆 发表于 2022-1-27 20:50:06

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 列是所锁定对象的所有者)
https://www.uoften.com/dbs/oracle/20180415/73068.html
页: [1]
查看完整版本: oracle查看会话锁定的所有对象代码分享