Raj:

I had trouble with this very query.  Posted it to this list.  Never came up with anything.  What fixed the query for me was to add the ordered hint (select /*+ ordered */).

You might give it a try.

Good luck!!

 

Barb

 

 "Jamadagni, Rajendra" <[EMAIL PROTECTED]> wrote:

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) request
FROM v$lock l, v$session s,
sys.USER$ u,sys.obj$ t
WHERE l.SID = s.SID
AND s.TYPE != 'BACKGROUND'
AND t.obj# = l.id1
AND u.USER# = t.owner#


Raj
______________________________________________________
Rajendra Jamadagni              MIS, ESPN Inc.
Rajendra dot Jamadagni at ESPN dot com
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.
QOTD: Any clod can have facts, but having an opinion is an art!

********************************************************************This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify c! ! orporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.*********************************************************************2



Do you Yahoo!?
U2 on LAUNCH - Exclusive medley & videos from Greatest Hits CD

Reply via email to