Solved

AUTONOMOUS_TRANSACTION

Posted on 2004-09-27
2
1,224 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
ID: 12172872
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
ID: 12175225
Thank you Bob
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…

786 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