Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Getting program name in PL/SQL procedure?

Re: Getting program name in PL/SQL procedure?

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 05 Oct 2006 10:04:01 -0700
Message-ID: <1160067839.803473@bubbleator.drizzle.com>


Malcolm Dunnett wrote:
> I'd like to be able to get the program name that
> called a PL/SQL procedure ( the information that
> Enterprise Manager shows under the "Program"
> column of the sessions display ).
>
> I would have thought it was a SYS_CONTEXT
> item but I can't find a code that produces this
> information.
>
> Can anyone enlighten me on how to retrieve this
> information?

This capability is documented in Morgan's Library at www.psoug.org. Look at the OWA_UTIL.WHO_CALLED_ME demo.

What it is using is DBMS_UTILITY.FORMAT_CALL_STACK but this is far simpler to implement.

-- 
Daniel Morgan
Puget Sound Oracle Users Group
Received on Thu Oct 05 2006 - 12:04:01 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US