How to trace the errors in pl/sql block code?
Answer Posted / shai
Follow best practice for exceptions:
Try using: (available from 10g)
1. dbms_utility.format_error_backtrace
2. dbms_utility.format_error_stack
Example:
declare
x varchar2(10);
begin
select 15445454545 into x from dual;
exception
when others then
dbms_output.put_line
(dbms_utility.format_error_backtrace || ' ' ||
dbms_utility.format_error_stack);
end;
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is the difference between a database and a relational database?
What is the benefit of foreign key?
What do you mean by query optimization?
What can sql server reporting services do?
explain advantages of innodb over myisam. : Sql dba
Which are the different character-manipulation functions in sql?
Is sql an operating system?
How many indexes can be created on a table in sql?
What are the rules to be applied to nulls whilst doing comparisons?
Difference between table function and pipelined function?
What is dml and ddl?
Is sql similar to python?
Does sql between include endpoints?
What is not in sql?
What is native sql query?