Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> AW: What do you use autonomous transactions for?
Hi
That's a good idea. I think the only drawback here is: What if part of your work done within the trigger is=20 ok, before you encounter a problem. You can't rollback=20 what you've done in your AT then. You would have to do=20 a "roll-your-own"-rollback by keeping track of what you=20 changed and issuing a second AT to undo your work. That might be a real performance problem, depending of=20 how often your triggers are executed and what kind of=20 work they're supposed to do.
Stefan
-----Urspr=FCngliche Nachricht-----
Von: David.Schmoldt_at_gazettecommunications.com
[mailto:David.Schmoldt_at_gazettecommunications.com]
Gesendet: Dienstag, 17. Februar 2004 00:29
An: oracle-l_at_freelists.org
Betreff: RE: What do you use autonomous transactions for?=20
I *think* I read you can use autonomous transactions in table triggers =
to
avoid some mutating table situations. Haven't tried it myself.
I do use them a lot in logging the progress of long-running jobs, =
logging
errors before rollback, etc.
Dave
> -----Original Message-----
> From: Powell, Mark D [mailto:mark.powell_at_eds.com]
> Sent: Monday, February 16, 2004 1:29 PM
> To: 'oracle-l_at_freelists.org'
> Subject: RE: What do you use autonomous transactions for?=20
>=20 >=20
>=20 >=20
>=20 >=20
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- =20 ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Tue Feb 17 2004 - 03:20:48 CST
![]() |
![]() |