Solved

AUTONOMOUS_TRANSACTION

Posted on 2004-09-27
2
1,253 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes some very basic things about SQL Server filegroups.
Creating and Managing Databases with phpMyAdmin in cPanel.
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…

733 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