Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why do we use subquery?

1073


What is sql and its types?

1251


what does the t-sql command ident_current does? : Transact sql

1045


Why do we need a foreign key?

1165


Why do we use joins in sql?

1005


What is query optimization in sql?

1040


What are user defined functions?

1062


what is the difference between truncate and drop statements? : Sql dba

1177


Which normal form is best?

996


How are functions and procedures called in PL/SQL?

1306


What are records give examples?

1050


Are stored procedures faster than queries?

989


what is transaction? : Sql dba

1058


What are sql functions? Describe the different types of sql functions?

1209


Can you sum a count in sql?

1059