Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine the caller procedure in PL/SQL

Status
Not open for further replies.
Jul 1, 2003
21
DE
Hi,
My question is PL/SQL related.
I have a pkg_tool-Package, that has useful functions and is being called from multiple other packages.
One function should now behave different depending on the caller procedure.
Now, for avoiding a parameter to identify the caller package, is there a way for a procedure to "trace" or to determine the caller package or caller procedure of it?
We're using Oracle 10g (10.2.0.3) Enterprise.
Thanks in advance,
Roman
 
I would recommend adding the extra parameter - it'll make the function easier to maintain in the future if the output it gives depends solely on the input it receives.

I'd hate to debug something that digs around in the call stack and acts differently depending on what it finds there.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Thank you Dagon and Chris,
I will prove both suggestions.
Regards,
Roman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top