what is autonomouse transaction?

Answer Posted / p.rajasekar

Autonomous transactions are started by a parent, or main,
transaction but operate
independently of the parent for transaction control. If a
commit or rollback is used
in the autonomous or main transaction, or if a failure
occurs for any reason, it does
not impact the other transaction.
Our favorite use of this feature is for logging application
events. If the need is to
log activity, regardless of the outcome, but the logging
success or failure should not
impact the application, autonomous transactions are the
perfect solution.
To create an autonomous transaction, use a pragma called
AUTONOMOUS_TRANSACTION. The pragma is placed in the
declaration section of the block.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does count (*) do in sql?

528


How do you concatenate in sql?

552


Why is a trigger used?

531


Is sql a backend?

551


How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000

1646






What is meant by user defined function?

583


what does myisamchk do? : Sql dba

559


What is sql clause?

545


Explain what is a field in a database and record in a database?

611


What is a sql trace file?

550


How to write a query to show the details of a student from students table whose

542


explain normalization concept? : Sql dba

592


what is the difference between truncate and delete statement? : Transact sql

552


What are stored procedures in mysql?

568


what is clause? : Sql dba

594