Did you check if there are any triggers on  table order_master_sts_log? Are there any foreign keys that might lead back to 'select lookup' the initial table order_master
Good luck.


Gary Jackson <[EMAIL PROTECTED]> wrote:
Hello,
I have a moderate size 8.0.4 database that has been running perfectly for
years. I took an export of the structure only of this database and imported
it onto another server also running 8.0.4. I then inserted only a few rows
into key tables. This is now serving as a testing database for my
developers.
However a problem is showing up:

When inserting into a table, I get a mutating trigger error that does not
occur on the moderate size database. What could be causing this trigger
error on the small database when it works perfectly on the large database?
(I verified that all code of the trigger, all constraints, and all table
structures involved are identical).

It seems to be a fairly simple trigger:

CREATE OR REPLACE TRIGGER "BOSS".order_master_tau
AFTER UPDATE OF ord_mas_sts_cd ON order_master
FOR EACH ROW
BEGIN
IF
:old.ord_mas_sts_cd <> :new.ord_mas_sts_cd
THEN
INSERT INTO order_master_sts_log
( ord_id, ord_sub_id, ord_sts_cd, ord_sts_dt, ord_sts_nt )
VALUES
( :old.ord_id,:old.ord_sub_id, :old.ord_mas_sts_cd,
:old.ord_mas_sts_dt,
:old.ord_mas_sts_nt );
END IF;
END;


Any input greatly appreciated,
-Fred Smith

_________________________________________________________________
Try MSN Messenger 6.0 with integrated webcam functionality!
http://www.msnmessenger-download.com/tracking/reach_webcam

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Gary Jackson
INET: [EMAIL PROTECTED]

Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail messageto: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Reply via email to