dbTalk Databases Forums  

How can a 'non-owner' grant access to a table.

comp.database.oracle comp.database.oracle


Discuss How can a 'non-owner' grant access to a table. in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Pylatuk
 
Posts: n/a

Default How can a 'non-owner' grant access to a table. - 06-03-2004 , 07:25 AM






Hello all, I have a question regarding Oracle9i security.

I have a database owned by 'admin' all tables in the database are
owned and originally created by admin.

I have a role on this database named: Role1

If admin creates a new table named: 'new_table' I want another user,
say John to be able to GRANT SELECT ON new_table TO Role1;

This grant does not succeed ? Does anyone know how I can accomplish
this.

Thanks in advance.



Reply With Quote
  #2  
Old   
Richard Xu
 
Posts: n/a

Default Re: How can a 'non-owner' grant access to a table. - 06-04-2004 , 11:49 PM






grant select on tablename to john with grant option;

then, John could
grant select on tablename to role1;


"David Pylatuk" <davepylatuk (AT) centurysystems (DOT) net> wrote

Quote:
Hello all, I have a question regarding Oracle9i security.

I have a database owned by 'admin' all tables in the database are
owned and originally created by admin.

I have a role on this database named: Role1

If admin creates a new table named: 'new_table' I want another user,
say John to be able to GRANT SELECT ON new_table TO Role1;

This grant does not succeed ? Does anyone know how I can accomplish
this.

Thanks in advance.





Reply With Quote
  #3  
Old   
Hilarion
 
Posts: n/a

Default Re: How can a 'non-owner' grant access to a table. - 06-08-2004 , 07:43 AM



Quote:
If admin creates a new table named: 'new_table' I want another user,
say John to be able to GRANT SELECT ON new_table TO Role1;
Admin has to do:
GRANT SELECT ON new_table TO John WITH GRANT OPTION

Hilarion




Reply With Quote
  #4  
Old   
David Pylatuk
 
Posts: n/a

Default Re: How can a 'non-owner' grant access to a table. - 06-09-2004 , 08:43 AM



Thanks for the response.

However, I am using roles to handle table security and not granting table
permissions directly to tables but to roles.

The WITH GRANT OPTION does not work for roles. Any other ideas ?

Thanks again.

"Hilarion" <hilarion (AT) SPAM (DOT) op.SMIECI.pl> wrote

Quote:
If admin creates a new table named: 'new_table' I want another user,
say John to be able to GRANT SELECT ON new_table TO Role1;

Admin has to do:
GRANT SELECT ON new_table TO John WITH GRANT OPTION

Hilarion





Reply With Quote
Reply




Thread Tools
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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.