dbTalk Databases Forums  

create table and schema privileges

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss create table and schema privileges in the comp.databases.ibm-db2 forum.



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

Default create table and schema privileges - 08-26-2003 , 06:34 PM






Hi

If I create table as instance owner as follows:

create table someuser.junk(x int)

What privileges will someuser have. I just tested that someuser cannot
drop or
alter junk table or even create a new table under schema someuser.
Just would like to know if I am missing anything.

Thanks

Reply With Quote
  #2  
Old   
Larry
 
Posts: n/a

Default Re: create table and schema privileges - 08-26-2003 , 08:06 PM






Is "someuser" a valid user defined to the os?

Larry Edelstein

keith wrote:

Quote:
Hi

If I create table as instance owner as follows:

create table someuser.junk(x int)

What privileges will someuser have. I just tested that someuser cannot
drop or
alter junk table or even create a new table under schema someuser.
Just would like to know if I am missing anything.

Thanks


Reply With Quote
  #3  
Old   
Ian D Bjorhovde
 
Posts: n/a

Default Re: create table and schema privileges - 08-27-2003 , 09:55 AM



keith wrote:
Quote:
Hi

If I create table as instance owner as follows:

create table someuser.junk(x int)

What privileges will someuser have. I just tested that someuser cannot
drop or
alter junk table or even create a new table under schema someuser.
Just would like to know if I am missing anything.
By default, 'someuser' would have no privileges, as you found.
You would need to grant createin, dropin, alterin on the schema
to the user(s). If you (i.e. as SYSADM) created the table, then
you would also need to grant control on the table to 'someuser'.

Users do not automatically get control of a schemata that has
the same name as their userID.

DB2 databases automatically have the IMPLICIT_SCHEMA authority
granted to public when they are created ... this means that any
user can create any schema in the database.


Good luck,





-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----


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.