| SELECT A.owner scheme name, A.object_name table name, B.XIDUSN rollback segment number, B.xidslot slot number, B.XIDSQN serial number, b.session_id Lock Table session_id, B.oracle_username Lock table user name, Decode (D.type, ' XR ', ' NULL ', ' RS ', ' SS (row-s) ', ' CF ', ' SS (row-s) ', ' TM ', ' TABLE LOCK ', ' PW ', ' TABLE LOCK ', ' To ', ' TABLE LOCK ', ' TS ', ' TABLE LOCK ', ' RT ', ' ROW LOCK ', ' TX ', ' ROW LOCK ', ' MR ', ' S (Share) ', NULL) Locking method, C.machine User Group, C.terminal machine Name, B.os_user_name System User Name, b.process System process ID, DECODE (c.status, ' INACTIVE ', ' inactive ', ' active ', ' activity ') activities, C.server, C.sid, c.serial#, C.program connection mode, C.logon_time From All_objects A, V$locked_object B, SYS. Gv_$session C, V$lock D WHERE (a.object_id = b.object_id) and (b.process = c.process) and C.sid = D.sid and B.locked_mode = D.lmode Order by 1, 2; |