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
Explain 3 basic parts of a trigger.
What is the cause of mutating table error and how can we solve it?
How to display the records between two range in Oracle SQL Plus?
Explain the order of sql statement execution?
How sql query is executed?
what is text? : Sql dba
how to include comments in sql statements? : Sql dba
Can we use the cursor's to create the collection in PL/SQL?
what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?
What is a database event trigger?
Is it important to partition hard disk?
Is it possible to link two groups inside a cross products after the cross products group has been created?
what is a table in a database ? : Sql dba
How does left join work in sql?
What is the process of debugging?