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

State few characteristics of pl/sql?

565


How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?

582


What is the use of function in sql?

535


Which command is used to delete a package?

577


What is constant in pl sql?

515






Is sqlite thread safe?

603


How to start oracle sql developer?

557


Can we connect to postgresql using sql developer?

484


how to decrement dates by 1 in mysql? : Sql dba

582


what is a stored procedure? : Sql dba

548


What are procedures used for?

525


How many types of privileges are available in sql?

735


Is sql low level language?

574


What is the usage of nvl function?

594


How many sql core licenses do I need?

507