Grant Role/Grant Privilege [message #255470] |
Wed, 01 August 2007 00:38  |
dba_giri
Messages: 26 Registered: July 2007 Location: Hyderabad
|
Junior Member |
|
|
Hi..,
While Creating the following trigger at "Scott" User I've got an error as follows:
create or replace trigger data_logon_trigger
after logon
ON DATABASE
begin
execute immediate
'alter session set nls_date_format = ''yyyymmdd'' ';
end;
/
ERROR at line 3:
ORA-01031: insufficient privileges
I've given the following Grants to Scott
Grant Create Trigger to Scott
Grant Alter Any Trigger to Scott
After Above also I've got the same error Later I've given the following:
Grant DBA to Scott
Still I've got the same error, later I've given the following Grant:
Grant Administer Database Trigger to Scott
Then I can able to create the trigger.
By Default "Administer Database Trigger" is a Privelege is part of DBA role
Even If I 've granted that role to Scott, then why it is not able to created that trigger ...........?
Can u please explain problem might be what..?
Thanks in advance..
Giri K.Y.
|
|
|
|
|
|
|
Re: Grant Role/Grant Privilege [message #255504 is a reply to message #255480] |
Wed, 01 August 2007 01:40   |
dba_giri
Messages: 26 Registered: July 2007 Location: Hyderabad
|
Junior Member |
|
|
Hi..,
what u said is correct,, but I've seen that problem in the following scenario..:
I've already connected with that Scott user,
at my SYSTEM> I 've provided that "Grant DBA to Scott", immediately I've tried to create that trigger in that scenario it is giving the insufficient privilege, but if I've disconnected that SCOTT user and connected in that case am able to create that trigger..
Any how am thankful to u..
With Best Regards
Giri K.Y.
|
|
|
|
|