Implicit Database Trigger Compilation Fails With ORA-04045 and ORA-01031
(Doc ID 222467.1)
Last updated on AUGUST 30, 2017
Applies to:PL/SQL - Version 188.8.131.52 and later
Information in this document applies to any platform.
***Checked for relevance on 30-Aug-2017***
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;
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!