select a.sid, a.serial#, a.username, a.process, substr(a.MACHINE,1,20), to_char(a.LOGON_TIME, 'yyyymmddhh24miss' ),
b.object_name,
decode(c.lmode, 2, 'RS', 3, 'RX', 4, 'S', 5, 'SRX', 8, 'X', 'NO') TABLE_LOCK,
decode(a.command, 2, 'INSERT',3, 'SELECT',6, 'UPDATE', 7, 'DELETE', 12, 'DROP',6, 'LOCK', 'unknown') SQL,
decode(a.lockwait, NULL, 'No Wait', 'Wait') STATUS
from V$SESSION a, DBA_OBJECTS b, V$LOCK c
where a.sid = c.sid and b.object_id = c.id1
and c.type = 'TM'
and a.username = 'SCOTT'
order by 6;
Transaction 상태 조회
|
2008.12.16 18:16:25
|
2008.12.16 18:16:25
|
365
|
Aiden
Total of Attached file
0.00 Bytes of 0 files
2009.10.07
2009.10.07
2009.09.11
2009.09.11
2009.09.08
2008.12.16
2008.12.12
2006.12.20
2006.11.17
2006.11.16
2006.11.16