My Oracle Support Banner

ORA-1031 despite having Administer Database Trigger Privilege (Doc ID 2275535.1)

Last updated on JULY 26, 2024

Applies to:

Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

Creating a trigger fails with ORA-01031: insufficient privileges.

SQL>create role r1;
SQL>create user u1 identified by u1;
SQL>create user u2 identified by u2;
SQL>grant create session, create any trigger to u1;
SQL>grant administer database trigger to r1;
SQL>grant r1 to u1, u2;

conn u1/u1

SQL> create or replace trigger u2.afterlogin
after logon on database
begin
null;
end;
/ 2 3 4 5 6
create or replace trigger u2.afterlogin
*
ERROR at line 1:
ORA-01031: insufficient privileges



Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.