Page 1 of 1

Restricting the usage of Default Database

PostPosted: Sat Jul 09, 2011 7:36 am
by jaggz
Hi,

In a DB2 for z/OS V8 system, if a CREATE TABLE is issued without reference to a database or a table space, a simple table space with a name derived from the table name will be created in database DSNDB04, and the table will go in that table space. Is it possible to restrict the usage of default database DSNDB04 and make the Database created by us as a default to the users whom we have granted.

Regards,
Jags

Re: Restricting the usage of Default Database

PostPosted: Wed Jul 13, 2011 2:17 pm
by GuyC
You can "revoke CREATETAB ON DATABASE DSNdb04 from public" but you can't make another default

You must then specify "create table in database xxxx" which will create an implicit tablespace in database xxxx