반응형
select b.username username,
c.sid sid,
c.owner object_owner,
c.object object,
b.lockwait,
a.sql_text SQL
from v$sqltext a, v$session b, v$access c
where a.address=b.sql_address
and a.hash_value=b.sql_hash_value
and b.lockwait = 'WAIT'
and b.sid = c.sid
and c.owner != 'SYS'
출처 : http://ragew.tistory.com/3
c.sid sid,
c.owner object_owner,
c.object object,
b.lockwait,
a.sql_text SQL
from v$sqltext a, v$session b, v$access c
where a.address=b.sql_address
and a.hash_value=b.sql_hash_value
and b.lockwait = 'WAIT'
and b.sid = c.sid
and c.owner != 'SYS'
출처 : http://ragew.tistory.com/3