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 / rajesh venati

Exceptions are classified into two types,
They are
1. Predefined Exceptions
2. User Defined Exceptions
==> Oracle created some of the Predefined Exceptions like
ex: no_data_found etc.,

==> User Defined Exceptions are created by us.
types of user defined exceptions are
a. Raise
b. Raise_Application_Error
One more exception also there
pragma exception_init(exception,error_code)

Then come for Pragma Autonomous Transaction.

Pragma Autonomous Transaction is used to commit or rollback
the active block only.
As well as in a triggers dcl commands are not possible to
used, if u want use dcl command inside a triggers then we
will go for pragma autonomous transaction.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to revise and re-run the last sql command?

1163


Can we write dml inside a function in sql server?

953


Why is the cursor important?

1044


What is the purpose of cursors in pl/sql?

1137


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

1016


how to get @@error and @@rowcount at the same time? : Sql dba

1028


Why stored procedures are faster than query?

1027


How to order siblings in oracle hierarchy queries?

1047


How to Execute a Package in PL/SQL.?

1206


How can I speed up sql query?

963


How many postgresql users are there, worldwide?

1062


What are the different ddl commands in sql?

1170


Why schema is used in sql?

1050


Is and as keyword in pl sql?

961


How do you write a complex sql query?

1083