Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: Commits in Database Triggers

Re: Commits in Database Triggers

From: <xmark.powell_at_eds.com.x>
Date: 23 Mar 2001 15:04:39 GMT
Message-ID: <99fom7$kul$1@news.netmar.com>

In article <20010323.3241400_at_linux.local>, bhogak <bhogak_at_yahoo.com> writes:
>I know that we cannot use Commits/ Rollbacks in regular Database=20
>Triggers. I am planning to use a Trigger at Database Startup. (I am usin=
>g=20
>Oracle 8i). I need to update my Job Control table inside this trigger.
>
>How do I save my change if I don't use Commit?
>
>Thx.
>bhogak

Interesting question. I haven't actually tried to use a database level trigger for anything yet so I am not sure, and unfortunately I do not have time to test this before posting. But I believe that you can perform an autonomous transaction within a trigger so this should allow you to get around the problem. It shouldn't take you more than a few minutes to test this out. It would be appreciated if you posted back if this works.

Received on Fri Mar 23 2001 - 09:04:39 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US