建立bufferpool
db2 create bufferpool databuf immediate size 10240 pagesize 8k
建立表空间
①(没有指定pagesize大小及bufferpool)
db2 "create tablespace test1 managed by database using (file '/tmp/c0000.LRG' 200)"
②指定了pagesize大小及bufferpool
50331648*32k/1024/1024=1536G=1.5T
db2 "create tablespace DMBA_DATA5 PAGESIZE 32K managed by database using(file '/DMBA_DATA/db2inst1/NODE0000/DB_DMBA/T00000011/C0000000.LRG' 50331648) bufferpool BP32KP1"