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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Table security question

Re: Table security question

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Fri, 18 Sep 1998 19:58:09 GMT
Message-ID: <360fbaca.168757049@192.86.155.100>


A copy of this was sent to martinj(replace this with @)xs4all.nl (Martin Jesterhoudt)
(if that email address didn't require changing) On Fri, 18 Sep 1998 19:47:36 GMT, you wrote:

>On Fri, 18 Sep 1998 19:19:17 GMT, kshave_at_mbnet.mb.ca (Keith S.) wrote:
>
>> I want to give read access to the table, but only to columns 1,2 and
>>5. By granting 'SELECT' access on the table I would allow the user to
>>view all of the columns.
>
>You can create a view on column 1,2 and 5 and give 'GRANT SELECT' on
>this view. If you create a synonym for the view with the same name for
>the specific user, the user won't even be aware of the non existence
>of column 3 and 4.
>
>You can also give column rights in stead of the complete table:
>'GRANT SELECT (column1, column2, column5) ON yourtable TO ...'.

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^

nope that syntax does not work. that works for update/insert privs but not select... the view is the answer.

>-------------------------------------------------------------------------------
>--- Martin Jesterhoudt
>--- martinj(replace this by @)xs4all.nl
>-------------------------------------------------------------------------------
 

Thomas Kyte
tkyte_at_us.oracle.com
Oracle Government
Herndon VA

--
http://govt.us.oracle.com/ -- downloadable utilities  



Opinions are mine and do not necessarily reflect those of Oracle Corporation  

Anti-Anti Spam Msg: if you want an answer emailed to you, you have to make it easy to get email to you. Any bounced email will be treated the same way i treat SPAM-- I delete it. Received on Fri Sep 18 1998 - 14:58:09 CDT

Original text of this message

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