despite having Administer Database Trigger Privil
文章正文
发布时间:2025-08-18 10:45

ORA-01031: insufficient privileges- despite having Administer Database Trigger Privilege
(Doc ID 2275535.1)
Last updated on JUNE
23, 2025
Applies to:
Oracle Database Cloud Service - Version N/A and later
Oracle 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
Cause
Sign In
To view full details, sign in with your My Oracle Support account.
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.
Oracle offers a comprehensive and fully integrated stack of cloud applications and platform services. For more information about Oracle (NYSE:ORCL), visit oracle.com.

|

|
