Compile Trigger give Error ORA-01031: insufficient privileges

Recently while compiling a trigger in PDB database using sys user owned by another schema gave me error "ORA-01031: insufficient privileges"

SQL> Alter trigger owner.trigger_name compile;

ORA-01031: insufficient privileges

Sys user is super admin user has all possible privilege, but with 12.2 owner of trigger need direct permission of "administer database trigger" to allow other users to compile the trigger.

This behavior is intruded with 12.2 on-wards. In order to solve this problem grant "administer database trigger" direct permission to owner of the trigger and compile the trigger again.

SQL>grant administer database trigger to owner;
SQL> Alter trigger owner.trigger_name compile;


This details are also backed by Oracle Metalink Document - Doc ID 2275535.1

Comments

Popular posts from this blog

How to Solve - "WAIT FOR EMON PROCESS NTFNS"

Query Regression - "OR" Transformation Oracle 19c

ORA - 12537: TNS: connection closed