⌘BABAKOV.NET Let's code!
100% [dark] [ru]

Script for getting sessions blocking tables (Oracle)

Displays sessions that block tables:

select distinct ddl.session_id,
                s.SERIAL#,
                ddl.owner,
                ddl.name,
                ddl.mode_held,
                ddl.mode_requested,
                s.username,
                s.status
  from dba_dml_locks ddl, v$session s
 where ddl.session_id = s.SID

Comments (0)

No comments yet.

Leave a comment
Comment
Images (up to 5 MB)
Your comment will appear after moderation.