CREATE DATABASE UNICADB AUTOMATIC STORAGE YES ON '/apps/db2data/unicadb' DBPATH ON '/apps/db2data/unicadb' USING CODESET UTF-8 TERRITORY US PAGESIZE 32 K
CONNECT TO UNICADB
CREATE BUFFERPOOL UNICA32KBPOOL SIZE 3000 PAGESIZE 32K
CREATE REGULAR TABLESPACE UNICA PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE BUFFERPOOL UNICA32KBPOOL AUTORESIZE YES
create bufferpool unicasys32kbpool size 500 pagesize 32K
CREATE TEMPORARY TABLESPACE TEMPSPACE2 pagesize 32k MANAGED BY AUTOMATIC STORAGE BUFFERPOOL unicasys32kbpool
REVOKE USE OF TABLESPACE USERSPACE1 FROM PUBLIC
GRANT USE OF TABLESPACE UNICA TO USER UMP WITH GRANT OPTION
GRANT USE OF TABLESPACE UNICA TO USER UC WITH GRANT OPTION
GRANT USE OF TABLESPACE UNICA TO USER UMO WITH GRANT OPTION
Need to add one more tablespace for cognos:
ReplyDeleteCREATE USER TEMPORARY TABLESPACE USERTEMP MANAGED BY AUTOMATIC STORAGE