column username format a10
column lockwait format a10
column sql_text format a80
column object_owner format a14
column object format a15
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';
column lockwait format a10
column sql_text format a80
column object_owner format a14
column object format a15
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';
'DATABASE' 카테고리의 다른 글
[ORACLE] 10g 테이블 삭제 후 휴지통 비우기 (0) | 2011.10.16 |
---|---|
[ORACLE] rowid와 rownum의 정의와 사용법 (0) | 2011.10.16 |
[ORACLE] 데이터베이스 스키마 설계 (0) | 2011.10.16 |
[ORACLE] SP에서 테이블 생성 (0) | 2011.10.16 |
[ORACLE] backup (exp/imp) (0) | 2011.10.16 |