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: ORA-04098: trigger name is invalid and failed re-validation

Re: ORA-04098: trigger name is invalid and failed re-validation

From: TurkBear <johng_at_mm.com>
Date: 2000/07/10
Message-ID: <3969d9fd.2981487@news>#1/1

Try naming the Trigger something else...

I believe that Oracle is only reading the first 8 letters and 'trigger' is a reserved word...

Call it My_Trigger for instance...

claus_at_js-edb.dk (Claus Nielsen) wrote:

>I am unable to use any kind of trigger I make. Not that I have ever
>succeded at getting any trigger to work, as I am new at this. But I
>have created the following trigger - just as an example:
>
>CREATE TRIGGER TRIGGER1
>BEFORE INSERT
>ON TABLE1
>FOR EACH ROW
>BEGIN
> NEW.ID := 3;
>END;
>
>The real trigger will eventually call a sequence which will return a
>uniqe number. But even with this simple trigger, every attempt at
>inserting a record in my table, results in the following error:
>
>ORA-04098: trigger name is invalid and failed re-validation
>
>The Oracle Documentation gives this explanation:
>
>Cause: A trigger was attempted to be retrieved for execution and was
>found to be invalid. This also means that compilation/authorization
>failed for the trigger.
>
>Action: The options are to resolve the compilation/authorization
>errors, disable the trigger, or drop the trigger.
>
>Unfortunately I can't figure where to go from here? What should I do?
>Any solutions/suggestions are welcome! Thanks.
>
>Regards, Claus Nielsen
Received on Mon Jul 10 2000 - 00:00:00 CDT

Original text of this message

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