CONNECT TO dbname;
drop BUFFERPOOL BFPOOL8;
--建缓冲池
CREATE BUFFERPOOL BFPOOL8 IMMEDIATE SIZE 25000 PAGESIZE 8 K ;
--建表空间,路径要修改
CREATE TABLESPACE DMS_DATA8K PAGESIZE 8 K MANAGED BY DATABASE
USING (FILE '/home/DB2/NODE0000/DMS_DATA8K.DMS' 3G)
EXTENTSIZE 16 OVERHEAD 10.5 PREFETCHSIZE 16 TRANSFERRATE 0.14
BUFFERPOOL BFPOOL8 DROPPED TABLE RECOVERY OFF;
--扩展表空间(调整容器大小)
--ALTER TABLESPACE DMS_DATA8K resize (FILE '/home/DB2/NODE0000/DMS_DATA8K.DMS' 2G);
--扩展表空间(增加容器大小)
--ALTER TABLESPACE DMS_DATA8K extend (FILE '/home/DB2/NODE0000/DMS_DATA8K.DMS' 2G);
--扩展表空间(给表空间增加容器)
--ALTER TABLESPACE DMS_DATA8K add (FILE '/app149/DB2/NODE0000/DMS_DATA8K.DMS' 5G);