Cheeky Cockatoo

Life Advice and Stories, Travel, Oracle Tech, Good Food and More

lock_info.sql

Download Script

rem see note 2105130.6
col name format a30
col lmode for a30

select d.Name, d.LOCKID, d.EXPIRATION,
       l.sid, l.lmode
from sys.dbms_lock_allocated d,
     v$lock l
where  d.LOCKID = l.id1
order by d.Name
/