| Existing role claimed to be not existing [message #536206] |
Mon, 19 December 2011 14:40  |
 |
brieck
Messages: 5 Registered: December 2011
|
Junior Member |
|
|
Hello,
I'm am getting an error that says that a role doesn't exist when I can cleary see it in DBA_ROLES. I can successfully grant other roles in this session. I am using Oracle 11.1 on RAC. Does anybody know why this is happening?
GRANT "CONNECT" TO BAKERD
Error at line 1
ORA-01919: role 'CONNECT' does not exist
select * from dba_roles where role = 'CONNECT'
ROLE PASSWORD_REQUIRED
------------------------------ -----------------
CONNECT NO
1 row selected.
[Updated on: Mon, 19 December 2011 14:43] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Existing role claimed to be [message #536214 is a reply to message #536210] |
Mon, 19 December 2011 15:06  |
Solomon Yakobson
Messages: 3305 Registered: January 2010 Location: Connecticut, USA
|
Senior Member |
|
|
Don't confuse being able to select from dba_roles with being able to grant roles:
SQL> grant select on dba_roles to u1;
Grant succeeded.
SQL> connect u1@orcl
Enter password: **
Connected.
SQL> select * from dba_roles where role = 'CONNECT'
2 /
ROLE PASSWORD AUTHENTICAT
------------------------------ -------- -----------
CONNECT NO NONE
SQL> grant connect to u2;
grant connect to u2
*
ERROR at line 1:
ORA-01919: role 'CONNECT' does not exist
SQL>
And now:
SQL> grant grant any role to u1
2 /
Grant succeeded.
SQL> connect u1@orcl
Enter password: **
Connected.
SQL> grant connect to u2;
Grant succeeded.
SQL>
SY.
[Updated on: Mon, 19 December 2011 15:12] Report message to a moderator
|
|
|
|