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...

types of exceptions and what is meant by pragma
autonomous_transaction ?what is the use.

Answer Posted / madhav

Exceptions are 3 types
.Predefined
.by default oracle provide error handlers and error
numbers.user can handle that.
data_not_found,too_many_rows,cursor_already_open
.Non predefined exceptions
.Error handlers are not available
.Only Error numbers are avalable
.By using pragma user can handle that
example:- child_record exception;
pragma exception_init(child_record,-2292);
.User defined exceptions
.Error handlers are not available
.Error numbers are also not available
.user can raise and handle that based on business
logic
example:-no_data exception(declaration section)
raise no_data(execution section)
when no_data then(exception sectiion)
dbms_output.put_line('data is not
available');
end;

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you change a value in sql?

964


The in operator may be used if you know the exact value you want to return for at least one of the columns.

1025


Is join an inner join?

894


What is update query?

919


What is the sql*loader? : aql loader

1003


Does a primary key have to be a number?

915


What is multiple columns?

1000


What are the three forms of normalization?

992


Which query operators in sql is used for pattern matching?

901


Can we use ddl statements in stored procedure sql server?

964


What does closing a cursor do?

1241


Why function is used in sql?

877


what is heap table? : Sql dba

1045


What is the current version of postgresql?

1004


How to fix oracle error ora-00942: table or view does not exist

954