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 > CREATETAB on tablespace

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-19-04, 10:23
jfkuser jfkuser is offline
Registered User
 
Join Date: Mar 2003
Posts: 59
CREATETAB on tablespace

How do I grant CREATETAB on selected tablespace and not on entire database?

Thanks,
j
Reply With Quote
  #2 (permalink)  
Old 05-19-04, 10:47
cgprakash cgprakash is offline
Registered User
 
Join Date: Feb 2002
Posts: 96
You can make use of "USE" privilege(tablespace level).

Regards
Prakash
Reply With Quote
  #3 (permalink)  
Old 05-20-04, 10:08
jfkuser jfkuser is offline
Registered User
 
Join Date: Mar 2003
Posts: 59
USE is not allowing users to create tables in that tablespace. Is there any other way to do this. We just want to give them create table access to only one tablespace and not on entire database.

Thanks,
j
Reply With Quote
  #4 (permalink)  
Old 05-20-04, 10:48
sathyaram_s sathyaram_s is online now
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Grant CREATETAB on database and then USE OF TABLESPACE only for the tablespace ..

For eg, if you want user TEST1 to create tables in TEST1_TS, then

revoke createtab on database from public
revoke use of tablespace test1_ts from public
grant createtab on database to user test1
grant use of tablespace test1_ts to user test1_ts

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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