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
Which command is used to delete a package?
Are sql connections encrypted?
How sql query is executed?
Is it possible to update views?
Can we commit inside a trigger?
What is cursor and its types?
How to get list of all tables from a database?
Mention what pl/sql package consists of?
What is rank () in sql?
What is the difference between cross join and natural join?
What does an inner join do?
What is query execution plan in sql?
What is loop in pl sql?
How can we solve sql error: ora-00904: invalid identifier?
How many sql statements are used?