Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Oracle apps technical (pragma autonomous transaction)

Posted on 2013-06-26
2
Medium Priority
?
657 Views
Last Modified: 2013-06-26
Can anyone post a best example for pragma aotonomous transaction in pl/sql, and a document which explains in detail about it.
0
Comment
Question by:Aparanjith
2 Comments
 
LVL 78

Accepted Solution

by:
slightwv (䄆 Netminder) earned 1500 total points
ID: 39279737
Can't really come up with a 'best' example.

It is basically a procedure or function that acts independent of the transaction that calls it.

The doc link below has an example:

Autonomous transactions are useful for actions that must be performed independently, regardless of whether the calling transaction commits or rolls back. For example, in a stock purchase transaction, you want to commit customer data regardless of whether the overall stock purchase goes through. Additionally, you want to log error messages to a debug table even if the overall transaction rolls back.


The docs have what you need:
http://docs.oracle.com/cd/E11882_01/server.112/e25789/transact.htm#CNCPT417
0
 

Author Comment

by:Aparanjith
ID: 39279762
Hey thanks for the reply slightwv.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to recover a database from a user managed backup
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question