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

what are tables and fields? : Sql dba

1056


Enlist some predefined exceptions?

1060


What are different types of statements supported by sql?

1165


Can I learn sql in a week?

1076


Can I call a procedure inside a function?

1012


Explain architecture of sql server notification services?

1061


what is a join? : Sql dba

1037


what are the security recommendations while using mysql? : Sql dba

1119


what are the differences between char and nchar? : Sql dba

1115


what is the difference between char_length and length? : Sql dba

1045


what are the different type of normalization? : Sql dba

1027


Is json a nosql?

982


Why do you partition data?

1022


What are sql constraints?

1175


Is sql dba a good career? : SQL DBA

992