The DBMS_UTILITY.FORMAT_CALL_STACK and DBMS_UTILITY.FORMAT_ERROR_BACKTRACE functions return incredibly useful information, namely and respectively:
* the execution call stack: that is, the sequence of program calls (including line numbers) that got you to the current place in your code.
* the trace of program calls and line numbers back to the line on which the last error was raise (added in Oracle Database 10g Release 2).
Unfortunately, if the program in the stack is defined in a package (very likely), Oracle only shows you the package name, not the name of the actual subprogram. This means that you cannot automatically determine the name of the procedure or function that was called.
|