DB2表空间扩容方法(linux)
DB2表空间扩容方法
·
今日工作中,向db2数据库中批量插入数据时,遇到一个问题:“Unable to allocate new pages in table space‘TS_PEE_DAT_8k’”
于是在linux查看表空间还剩多少
db2 "list tablespaces show detail"
发现所剩无几(free pages = 0)
于是便扩容表空间
db2 "alter tablespace TS_PEE_DAT_8K resize(all 2097152)"
“2097152”就是total pages,要比你原来的大,小了会报错
哦,对了,如果遇见这个报错
The file system is full.
说明上面扩容的pages,定的数太大了,需要缩小一点(或者使用其他方法,maybe)。
其他方法请参见:Google,Bing
That's all!
更多推荐
所有评论(0)