复制代码 代码如下:
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 列是所锁定对象的所有者)
复制代码 代码如下:
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 列是所锁定对象的所有者)