Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB   


 

 

 


 

 

 

 
 

ORA-04098: trigger "string.string" is invalid and failed re-validation tips

Oracle Error Tips by Burleson Consulting

 

Oracle docs note this about ORA-04098:

  •        ORA-04098: trigger "string.string" is invalid and failed re-validation
    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: Options are to resolve the compilation/authorization errors, disable the trigger, or drop the trigger.
  • Many users find that when using Oracle Human Resources version 11.5.9, ORA-04098 is thrown in conjunction with Frm-40735.  MOSC has found that this ORA-04098 is characterized by receiving FRM-40735 and ORA-04098 after trying to save data on an organization. 

    To resolve ORA-04098, try to first figure out which triggers are invalid by running the query.  For example:

    select object_name
    from dba_objects
    where object_type = 'TRIGGER'
    and status = 'INVALID';

    For the example above, we can see that there appears to be two invalid triggers:

    • CAIBR_HR_ALL_ORG_T1
    • CAIBR_HR_ALL_ORG_T2

    Then, you can disable the triggers to fix ORA-04098. 

    Here is another example of ORA-04098:

    Many users fin themselves encountering ORA-04098 when they are trying to execute a trigger using a mixed case with failed naming.  MOSC also offers great notes on this issue with ORA-04098 in which ORA-04098 is thrown with a trigger when it is being executed after being recompiled.  For example:

    update emp set ename = 'miller1' where empno = 7934
    *
    ERROR at line 1:
    ORA-04098: trigger 'test' is invalid and failed re-validation

    What has happened is ORA-04098 is thrown after the customer has tried a "triggername" so that they can have both an upper and lower case version of the trigger. The lowercase, however, become invalid because the the lowercase trigger isn't terminated with a ; in a trigger test.  This being, the uppercase trigger test is not throwing the ORA-04098 error, but the lower is.

    To resolve ORA-04098, you should try to only keep one trigger and not the other.  You can drop the unecesary trigger by adding double quotes.  Her is an example of this method of resolveing ORA-04098:

    Run as scott/tiger.

    SQL> create or replace trigger "SCOTT"."TEST"
    2 after update of "ENAME"
    3 on emp
    4 begin
    5 update emp set job='job2';
    6 end;
    7 /

    Trigger created.

    SQL> create or replace trigger "SCOTT"."test"
    2 after update of "ENAME"
    3 on emp
    4 begin
    5 update emp set job='job2'
    6 end;
    7 /

    Warning: Trigger created with compilation errors.

    SQL> update emp set ename = 'miller1' where empno = 7934;
    update emp set ename = 'miller1' where empno = 7934
    *
    ERROR at line 1:
    ORA-04098: trigger 'test' is invalid and failed re-validation

    SQL> drop trigger "test";

    Trigger dropped.

    SQL> update emp set ename = 'miller1' where empno = 7934;

    1 row updated.


     

     

    Burleson is the American Team

    Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

    Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

    Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.


                        









    Burleson Consulting

    The Oracle of Database Support

    Oracle Performance Tuning

    Remote DBA Services


     

    Copyright © 1996 -  2012 

    All rights reserved.

    Oracle © is the registered trademark of Oracle Corporation.


     

      
     

     
     
     
     
    Oracle performance tuning software
     
     

     

     
     
     
    Oracle performance Tuning 10g reference poster
     
     
     
    Oracle training in Linux commands
     
    Oracle training Excel
     
    Oracle training & performance tuning books