Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Creator of a role gets what rights?

Re: Creator of a role gets what rights?

From: Brian Peasland <oracle_dba_at_remove_spam.peasland.com>
Date: Tue, 24 Jun 2003 14:42:14 GMT
Message-ID: <3EF86346.F70FF52B@remove_spam.peasland.com>


In order for a user to create a role, they need the CREATE ROLE privilege. In order for a user to grant a role they did not create to another, they need the GRANT ANY ROLE privilege. This can be verified with a simple test:

ORA9I SQL> create user testuser identified by pass123;

User created.

ORA9I SQL> grant create session to testuser;

Grant succeeded.

ORA9I SQL> grant create role to testuser;

Grant succeeded.

ORA9I SQL> connect testuser/pass123
Connected.
ORA9I SQL> create role test_role;

Role created.

ORA9I SQL> grant test_role to peasland;

Grant succeeded.

ORA9I SQL> grant connect to peasland;
grant connect to peasland
*
ERROR at line 1:
ORA-01919: role 'CONNECT' does not exist

HTH,
Brian

-- 
===================================================================

Brian Peasland
oracle_dba_at_remove_spam.peasland.com

Remove the "remove_spam." from the email address to email me.


"I can give it to you cheap, quick, and good. Now pick two out of
 the three"
Received on Tue Jun 24 2003 - 09:42:14 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US