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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PL / SQL (get pkg/func/proc name)

Status
Not open for further replies.

jbpelletier

Programmer
Sep 8, 2001
232
CA
Hi, i code a prod that i use in the exception part of "all" proc/func.. Its called like that

EXCEPTION
WHEN OTHERS THEN
Pr_Iv_Wlog('ERROR','PACKG_NAME.PROC_FUNC_NAME', SQLCODE ,SQLERRM); --this is save in a log table that add a timestamp
RAISE;
END;

i whant to "soft code" the part 'PACKG_NAME.PROC_FUNC_NAME' is there a way to get the package name and the proc/funct where the error occured?

tanx,
jb
 
Try to use DBS_UTILITY.FORMAT_ERROR_STACK. It returns the whole stack with full set of ORA-06512 errors. But note that once the exaeption is catched it's no more an error.

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top