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 -> Oracle 7 trigger error

Oracle 7 trigger error

From: abrusko <abrusko_at_binney-smith.com>
Date: Tue, 20 Jul 1999 06:26:13 -0800
Message-ID: <932480777.11109@www.remarq.com>


Hi,

I have created the following trigger in Oracle 7.3:

create trigger add_user_and_date
after update or insert on frt.freight
for each row
begin
update frt.freight set
last_mdfy_emp = 'trigger',
last_mdfy_date =
  (select sysdate from dual);
end;

The trigger creates without any error.
When I fire the trigger thru an insert or update, I get the following error:
[INTERSOLV][ODBC Oracle driver][Oracle]ORA-04091: Table frt.freight is mutating, trigger/function may not see it ORA-06512: at "XXXX.ADD_USER_AND_DATE", line 2 ORA-04088: Error during execution of trigger 'XXXX.ADD_USER_AND_DATE' (#4091).

What would cause this error...thanks alot!!! Andy

Received on Tue Jul 20 1999 - 09:26:13 CDT

Original text of this message

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