Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: calling program
Thanks all for your help . I got the answer .
Big P
Not exactly true...
Well, since original question was, if it's possible to know calling procedure (or program), I think DBMS_UTILITY..FORMAT_CALL_STACK function will return as a VARCHAR2 call stack, which will provide info at least about calling PL/SQL units (procedures, functions, or just anonymous blocks). Check the docs on DBMS_UTILITY..FORMAT_CALL_STACK.
Igor Neyman, OCP DBA
ineyman_at_perceptron.com
Big Planet,
Whoa, now there's a can of worms!
In a word - no. Not unless you pass that info. in as an argument.
Think about what you're asking. Since PL/SQL procedures can be called from, not only other PL/SQL procedures and functions, but the SQL*Plus command line, ODBC calls, Java programs, etc. etc., what would be the identification mechanism?
Also, since PL/SQL functions can be embedded in SQL statements, there's yet another problem - how does a SQL statement know/report what program is using it?
The overhead to give you what you're asking would, IMHO, be too high if provided by the PL/SQL engine.
Jack
-----Original Message----- From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Big Planet Sent: Friday, March 15, 2002 2:18 PM To: Multiple recipients of list ORACLE-L Subject: calling program Hi LIst , Is there a way a pl/sql procedureor function can know the calling procedure or calling program . -ak
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Big Planet
INET: bigplanet34_at_hotmail.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------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 Mar 15 2002 - 18:18:28 CST