Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DBMS_UTILITY package

699403Jun 29 2009 — edited Jun 29 2009
Hi there,

I would like to utilize the DBMS_UTILITY package to capture errors in a log table. As stated in the following piece of code below in Oracle 10g database DBMS_UTILITY.FORMAT_ERROR_BACKTRACE function returns information about where the error originated from. Is there way this could be achieved on a Oracle 9i Database???
SQL> BEGIN
  2     will_error();
  3  EXCEPTION
  4     WHEN OTHERS THEN
  5        DBMS_OUTPUT.PUT_LINE( SQLERRM );
  6        DBMS_OUTPUT.PUT_LINE( DBMS_UTILITY.FORMAT_ERROR_BACKTRACE );
  7  END;
  8  /
ORA-06501: PL/SQL: program error
ORA-06512: at "SCOTT.WILL_ERROR", line 3
ORA-06512: at line 2
Thanks.

Edited by: Rowann on Jun 29, 2009 4:19 AM
This post has been answered by 21205 on Jun 29 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 27 2009
Added on Jun 29 2009
5 comments
385 views