ORA-04098: trigger is invalid and failed re-validation [message #40890] |
Sun, 10 November 2002 18:00  |
Chris Bartlett
Messages: 1 Registered: November 2002
|
Junior Member |
|
|
Hi,
I am having problems with a trigger I have created - it compiles but when it runs it is giving me the error 'ORA-04098: trigger is invalid and failed re-validation'. Below is the trigger:
CREATE OR REPLACE TRIGGER st_sub_vicone_cycle_map
BEFORE INSERT OR UPDATE ON v_sub
FOR EACH ROW
BEGIN
IF (:OLD.mrkt_typ != :NEW.mrkt_typ AND :NEW.mrkt_typ = 2000040) OR
(:OLD.mrkt_typ = :NEW.mrkt_typ AND :OLD.mrkt_typ = 2000040) AND
:NEW.inv_day != 0
THEN
:NEW.inv_day := 0;
END IF;
END st_sub_vicone_cycle_map;
Can you please explain how ti fix this error?
|
|
|
|
|