Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > GRANT option Issue for a table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-25-03, 10:34
RastogiKamesh RastogiKamesh is offline
Registered User
 
Join Date: Apr 2003
Location: Jagdishpur
Posts: 146
GRANT option Issue for a table

Hi,
I am using Oracle9i on SUN OS Solaris-5.8. I would like to give select permission of a table to a <new_user>, but i do not want to give select access of all the columns of the table. How can i do that..?? Is that possible in Oracle?

The table tab1 is having 10 columns & i want to give access of only 3 columns to <new_user>.

I am giving this command,

GRANT SELECT (col1, col2) on tab1 to <new_user>;

It is giving me error like at Column Name position:

ERROR at line 1:
ORA-00969: missing ON keyword

Could anyone help me please. Thanks in advace.

Regards,
__________________
- KR
Reply With Quote
  #2 (permalink)  
Old 04-25-03, 10:53
aarroyob aarroyob is offline
Registered User
 
Join Date: Apr 2003
Posts: 6
You need to create a view (for example) as select col1,col2 ... and grant select on that view.

Cheers
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On