despite having Administer Database Trigger Privil
Last updated on JUNE 23, 2025
Applies to: Oracle Database Cloud Service - Version N/A and laterOracle Database - Enterprise Edition - Version 12.2.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Generation 1 - Exadata Cloud at Customer (First Generation Cloud Machine) - 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
Register Don't have a My Oracle Support account? Click to get started!
In this Document
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.
2025-08-18 10:45 点击量:40