Solved

AUTONOMOUS_TRANSACTION

Posted on 2004-09-27
2
1,186 Views
Last Modified: 2012-05-05
Hi All,
       I am using PRAGMA AUTONOMOUS_TRANSACTION in all my pl/sql Procedures. Are there any disadvantages or  
     performance issues for using the above in the code?

Thanks,
Cavaturu
0
Comment
Question by:cavaturu
2 Comments
 
LVL 7

Accepted Solution

by:
BobMc earned 250 total points
Comment Utility
No real perfomance issue, other than perhaps committing more often than you need to.
What would concern me is how you control your transactions - the way you have it, each procedure will commit its own changes - this may well be what you want, but what happens when you hit an error condition? Which bits get rolled back?

I dont know your application design, so I cant really be more specific than 'be careful'.

The only time I use autonomous transactions is when writing logs - audit trails, debug info etc where I want to find out what was attempted, even if it fails.

HTH
Bob
0
 

Author Comment

by:cavaturu
Comment Utility
Thank you Bob
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now