Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> How to tune this query ...
I am looking at oracle supplied locking query ... any idea how to tune this
?
SELECT l.SID,s.serial#,s.username,s.terminal,
DECODE(l.TYPE,'RW','RW - Row Wait Enqueue', 'TM','TM - DML Enqueue', 'TX','TX - Trans Enqueue', 'UL','UL - User',l.TYPE||'System') res,
SUBSTR(t.NAME,1,20) TAB,u.NAME owner, l.id1,l.id2, DECODE(l.lmode,1,'No Lock', 2,'Row Share', 3,'Row Exclusive', 4,'Share', 5,'Shr Row Excl', 6,'Exclusive',NULL) lmode, DECODE(l.request,1,'No Lock', 2,'Row Share', 3,'Row Excl', 4,'Share', 5,'Shr Row Excl', 6,'Exclusive',NULL) requestFROM v$lock l, v$session s,
AND s.TYPE != 'BACKGROUND' AND t.obj# = l.id1 AND u.USER# = t.owner#
Raj
QOTD: Any clod can have facts, but having an opinion is an art!
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jamadagni, Rajendra INET: Rajendra.Jamadagni_at_espn.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri Nov 08 2002 - 15:19:40 CST
- text/plain attachment: ESPN_Disclaimer.txt