create a read only user in Oracle 11g


SQL> create user anar identified by anar;
User created.

SQL> grant create session, select any table, select any dictionary to anar; Grant succeeded.

SQL> conn anar/anar Connected.

SQL> create table t(id number); create table t(id number) * ERROR at line 1: ORA-01031: insufficient privileges
SQL> desc test.t Name Null? Type ----------------------------------------- -------- ---------------------------- ID NUMBER SQL> insert into test.t values (1); insert into test.t values (1) * ERROR at line 1: ORA-01031: insufficient privileges
SQL> update test.t set id = 3; update test.t set id = 3 * ERROR at line 1: ORA-01031: insufficient privileges SQL>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: