Skip to content

Instantly share code, notes, and snippets.

@katjunior
Created September 18, 2013 15:56
Show Gist options
  • Save katjunior/6611308 to your computer and use it in GitHub Desktop.
Save katjunior/6611308 to your computer and use it in GitHub Desktop.
Oracle - Locked Objects
select
c.owner,
c.object_name,
c.object_type,
b.sid,
b.serial#,
d.spid,
b.status,
b.osuser,
b.machine
from
v$locked_object a ,
v$session b,
dba_objects c,
v$process d
where b.sid = a.session_id
and a.object_id = c.object_id
and b.paddr=d.addr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment