欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ORACLE 查询锁资源

程序员文章站 2022-06-02 11:48:05
...

oracle查询锁资源:

select b.SESSION_ID,
       b.ORACLE_USERNAME,
       b.OS_USER_NAME,
       b.PROCESS,
       b.LOCKED_MODE,
       a.owner,
       a.object_name,
       a.object_id,
       a.object_type,
       b.XIDUSN,
       b.XIDSLOT,
       b.XIDSQN
  from all_objects a, v$locked_object b
 where a.object_id = b.object_id