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

Home -> Community -> Usenet -> c.d.o.misc -> Re: mutating tables?

Re: mutating tables?

From: Michael Krolewski <vandra_at_u.washington.edu>
Date: Sat, 24 Oct 1998 14:15:41 -0700
Message-ID: <3632437D.DD8D8CE8@u.washington.edu>


As others have stated, you cannot modify a row in the table during a insert trigger. The solution is to create a pre-insert/pre-update trigger.
This trigger fires as the database engine tries to insert or update a row. The data in the row is modifyed and then written into the database.

Generally insert triggers are to update other tables at the same time as the current table.

Michael Krolewski

jennifer spain wrote:

> Can't find a word about this one in docs. Seen it?
>
> Oracle Error Code = 4091
>
> ORA-04091: table is mutating,
> trigger/function may not see it ORA-06512: at "", line 2 ORA-04088:
> error during execution of trigger ''
>
> Thanks-

jennifer spain wrote:

> Can't find a word about this one in docs. Seen it?
>
> Oracle Error Code = 4091
>
> ORA-04091: table is mutating,
> trigger/function may not see it ORA-06512: at "", line 2 ORA-04088:
> error during execution of trigger ''
>
> Thanks-
Received on Sat Oct 24 1998 - 16:15:41 CDT

Original text of this message

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