如何扩展DB2表空间

如题所述

查看表空间使用情况 db2pd -d dbname -tablespaces
扩大表空间有3种方法:
扩展容器50G
db2 "alter tablespace tablespace_name extend (file '/data1/ts2/con0' 50G,file '/data1/ts2/con1' 50G)"
2.增加容器,不过会rebalance,影响系统性能
db2 "alter tablespace tablespacename add (file '/data1/ts2/con2' 50G)"
3.通过alter tablespace begin new stripe set 选项,该选项不rebalance,不会对系统性能造成影响,但它会造成数据偏移。
db2 "alter tablespace tablespace_name begin new stripe set (file '/data1/ts2/con3' 10G)"
温馨提示:答案为网友推荐,仅供参考
相似回答