Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Oracle Locks
The following was posted by Tracie Thomas, but wasn't quite complete (the from clause got skipped). The following query includes the missing information:
select vs.sid,
vs.serial#,
vs.username,
u.name owner,
o.name object_name,
vs.username,
u.name owner,
o.name object_name,
id1 object_id,
decode(o.type, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5,
'SYNONYM',
6, 'SEQUENCE', 7, 'PROCEDURE', 8,
'FUNCTION',
9, 'PACKAGE', 11, 'PACKAGE BODY', 12,
'TRIGGER',
'UNDEFINED') object_type, decode( vl.lmode, 1,null, 2,'Row Share', 3,'Row Exclusive', 4,'Share', 5,'Share Row Exclusive', 6,'Exclusive') from v$session vs, v$lock vl, sys.user$ u, sys.obj$ o
Paul K.E. Walker Received on Wed Jun 27 2001 - 17:27:56 CDT