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 python and sql?
What is duration in sql profiler trace?
How do you update sql?
what are the performance and scalability characteristics of mysql? : Sql dba
What does where 1 1 mean in sql?
What is a composite primary key?
What is the importance of sqlcode and sqlerrm?
How to assign sql query results to pl sql variables?
How do you update a sql procedure?
What are the qualities of 2nf?
Can you join a table to itself?
How sql query is executed?
what is a view? : Sql dba
What is the use of partition by in sql?
What is oracle sql developer?