If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Inheriting privileges from schema?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-01-08, 22:34
jyotirmay jyotirmay is offline
Registered User
 
Join Date: Jan 2008
Posts: 6
Inheriting privileges from schema?

hi all,

I am not aware of DB2 much, I read up some material but could not find if the schema permissions are inheritable to the objects created in the schema.

my intention is to achieve following, grant a permission to a schema such that all the objects created inside that (by any user) will be by default select, execute etc. privileges for a particular user.

can anyone tell me if it is possible?
Reply With Quote
  #2 (permalink)  
Old 01-02-08, 07:32
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
grant are given on objects and not on schema
if you want give select authority on all tables, to a user, you have to grant select on each object to this user
this can be done with a script that reads the objects for a schema
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
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

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