Just wrote this now (9.2). Run it while the compilation is waiting:

select * 
from v$session 
where saddr in (select kgllkuse 
                 from DBA_KGLLOCK 
                 where kgllktype = 'Pin' 
                   and kgllkreq = 0 
                   and kgllkhdl in 
                     (select p1raw 
                       from v$session_wait 
                       where event like '%libr%pin%'))

Probably there is many other ways.

Regards,

Waleed

-----Original Message-----
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 10:14 AM
To: Multiple recipients of list ORACLE-L



I realize that a package can't be recompiled while a session has it open.

How do I identify which session has a package open?


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Khedr, Waleed
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to