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
Why do we use subquery?
What is sql and its types?
what does the t-sql command ident_current does? : Transact sql
Why do we need a foreign key?
Why do we use joins in sql?
What is query optimization in sql?
What are user defined functions?
what is the difference between truncate and drop statements? : Sql dba
Which normal form is best?
How are functions and procedures called in PL/SQL?
What are records give examples?
Are stored procedures faster than queries?
what is transaction? : Sql dba
What are sql functions? Describe the different types of sql functions?
Can you sum a count in sql?