My Oracle Support Banner

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

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


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
/ 2 3 4 5 6
create or replace trigger u2.afterlogin
ERROR at line 1:
ORA-01031: insufficient privileges


To view full details, 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 a vibrant support community of peers and Oracle experts.