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: Select after update

Re: Select after update

From: andrewst <member14183_at_dbforums.com>
Date: Thu, 05 Jun 2003 15:00:47 +0000
Message-ID: <2963121.1054825247@dbforums.com>

Originally posted by Erwin1971
> I'm curious if it's possible, if an SQL statement starts with
> "Select", to make changes to the database you are using. Like a
> statement Select...after update...I would like to create a control so
> that users can only make sql statements to view the database not to
> alter it.

Use roles and privileges to do that:

grant select on table1 to select_only_role; grant select on table2 to select_only_role; ..
(DO NOT grant insert, update, delete on anything to that role)

grant select_only_role to user1;
grant select_only_role to user2;
..

--
Posted via http://dbforums.com
Received on Thu Jun 05 2003 - 10:00:47 CDT

Original text of this message

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