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 optimistic concurrency control? : Transact sql
What are different types of tables in sql?
What is user in sql?
What is number function in sql?
What are the topics in pl sql?
Which join is default?
What is the sql query to display the current date?
How can use stored procedures in sql?
What is the difference between a database and a relational database?
How to place comments in pl/sql?
what are the different functions in sorting an array? : Sql dba
How do I partition a table in sql?
i have some prob lem to tell me about my self in interview first round ...
How do I enable sql encryption?
What does select count (*) mean in sql?