Quantcast
OracleBrains.Com header image 2

Today my observation related to oracle roles

November 22nd, 2006 by Rajender Singh · No Comments

Today my observation related to oracle roles as follows:

I login in in SQL*Plus as “system” user and gave following commands:
CREATE USER raj IDENTIFIED BY ‘raj’;
GRANT connect,resource TO raj;
CREATE ROLE test IDENTIFIED BY “test”;
GRANT test TO raj;

then I open another instance of SQL*Plus and login as “raj”:
When I gave following command:
CREATE TABLE table1 (col1 VARCHAR2(1));
It create a table for me.

Then I gave following command
SET ROLE ALL;
It generated a error, then I gave following command
SET ROLE test identified by “test”;
then gave following command:
CREATE TABLE table2 (col1 VARCHAR2(1));
It gave me error that I don’t have sufficient Privileges


Tags: Oracle Administration · Oracle Database

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Comment moderation is enabled. Your comment may take some time to appear.