Implicit Database Trigger Compilation Fails With ORA-04045 and ORA-01031 (Doc ID 222467.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version 8.1.5.0 and later
Information in this document applies to any platform.
***Checked for relevance on 16th Feb 2016***

Symptoms

You are using a database trigger and due to the fact that you have changed something to the underlying table structure the trigger status became INVALID.

The next time the trigger is fired you will notice that the implicit compilation of the trigger is failing:

  ORA-04045: errors during recompilation/revalidation of SCOTT.ERROR_LOG_TRIG
  ORA-01031: insufficient privileges
 

When the trigger is compiled explicitly then you are able to proceed.

  SQL> alter trigger scott.log_errors_trig compile;

  Trigger altered.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms