代码如下:
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.f2er.com/oracle/65408.html
from DBA_DDL_LOCKS
where session_id=(select sid from V$mystat where rownum=1)
/