Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Privileges on creating database logon trigger

420445Aug 15 2005 — edited Aug 15 2005
Hi,
I am trying to create a trigger which will fire on after Logon to database. My schema is granted with the privileges to create trigger. But i am not not getting why i am receiving error
ERROR at line 1:
ORA-01031: insufficient privileges
even though i have the privileges. I can create the trigger based upon the tables while any DML cause. But why i am not possible to create trigger on databse.

Is there any other privilege for doing so???????

Trigger Code
---------------------
CREATE OR REPLACE TRIGGER SET_NLS_LOGON_TRG AFTER LOGON ON DATABASE
BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YY HH24:mi:ss' ';
END;
/

ERROR at line 1:
ORA-01031: insufficient privileges

Thanks!!!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2005
Added on Aug 15 2005
2 comments
1,576 views