Getting ORA-01031: insufficient privileges while try to create trigger on 19c

I face with this error on Oracle19c database. My user has sysdba and also dba grant with create any trigger privilege.

Complete message is:

conn myuser/mypass@DB_SID

SQL> create or replace trigger xxxx
begin
null;
end;
create or replace trigger xxxx
*
ERROR at line 1:
ORA-01031: insufficient privileges

This is an expected behavior.

In 12.2 , direct grant of “administer database trigger” is needed for the trigger owner.

SOLUTION

Grant “administer database trigger” privilege to your user directly.The operation will be succeeds.

SQL>grant administer database trigger to myuser;

Reklam


Bir Cevap Yazın

Aşağıya bilgilerinizi girin veya oturum açmak için bir simgeye tıklayın:

WordPress.com Logosu

WordPress.com hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Facebook fotoğrafı

Facebook hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Connecting to %s

%d blogcu bunu beğendi: