–需要创建表空间的继续执行后续操作
2. 创建缓冲区
--连接数据库db2 connect to XXX db2 "CREATE BUFFERPOOL BP32K ALL DBPARTITIONNUMS SIZE 32768 PAGESIZE 32K"
//表空间 db2 " CREATE LARGE TABLESPACE "TS_DATA" IN DATABASE PARTITION GROUP IBMDEFAULTGROUP PAGESIZE 32768 MANAGED BY DATABASE USING (FILE '/dbpath/dbdata/appdb/TS_DATA' 262144) BUFFERPOOL BP32K"
//用户表空间 db2 "CREATE USER TEMPORARY TABLESPACE "TS_USER_TMP" IN DATABASE PARTITION GROUP IBMDEFAULTGROUP PAGESIZE 32768 MANAGED BY DATABASE USING (FILE '/dbpath/dbdata/appdb/TS_USER_TMP' 32768) BUFFERPOOL BP32K" //创临时表空间 db2 "CREATE TEMPORARY TABLESPACE TS_SYS_TMP IN DATABASE PARTITION GROUP IBMTEMPGROUP PAGESIZE 32768 MANAGED BY DATABASE USING (FILE '/dbpath/dbdata/appdb/TS_SYS_TMP ' 32768) BUFFERPOOL BP32K" //删除表空间 db2 "drop tablespace 表空间名称" //查看表空间 db2 list tablespaces show detail