Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: create user/role with read only access?
give him connect & create session privilege. Then (directly or through a default role) grant him select on the application tables. No need to grant 'select any table'. As the application owner, just do:
select 'grant select on ' || table_name || ' to theuser;' from user_tables
spool this to a file and you have a quick way of granting the user select privileges on all tables.
-- Terry Dykstra Canadian Forest Oil Ltd. "Rob Williamson" <robw_at_physics.umd.edu> wrote in message news:3A9C2378.8E0DEFBE_at_physics.umd.edu...Received on Tue Feb 27 2001 - 17:20:43 CST
> how do I create a user and give him only permission to do selects
> on tables but not allow him to change anything?
> I believe the select on any table permission allows 2
> things I might not like.
> 1) select sequence.nextval from dual;
> ** changing a sequence to a new value might not be a desired
> permission
>
> 2) I believe I read that this also gives them the ability to use the
> lock table
> command which could cause trouble
>
> *** the user wants to use MS Access as the front end to write reports
> so I was worried maybe Access could lock up the tables in some way I
> was
> not intending.
>
> Any other possible problems?
>
>
> Thanks in advance.
>
> Rob