Skip to content

Instantly share code, notes, and snippets.

@zyjibmcn
Created September 30, 2017 00:03
Show Gist options
  • Save zyjibmcn/fcf47982eeecb6c1d99856a9def2abb9 to your computer and use it in GitHub Desktop.
Save zyjibmcn/fcf47982eeecb6c1d99856a9def2abb9 to your computer and use it in GitHub Desktop.
db2 临时表空间不足的问题
最近从生产库dump一个几十万的表,import到本地库时,排序查询会报以下错误:
A temporary table could not be created because there is no available system temporary table space that has a compatible page size.. SQLCODE=-1585, SQLSTATE=54048, DRIVER=3.63.123
解决办法:
db2 "create bufferpool ibmdefault8k IMMEDIATE SIZE 5000 PAGESIZE 16K"
db2 "CREATE TEMPORARY TABLESPACE mytmptbs PAGESIZE 16K MANAGED BY SYSTEM USING ('/home/db2inst1/tmp_tbs1') EXTENTSIZE 32 PREFETCHSIZE 16 BUFFERPOOL IBMDEFAULT16K OVERHEAD 24.10 TRANSFERRATE 0.90 DROPPED TABLE RECOVERY OFF"
@bl4ckck
Copy link

bl4ckck commented Nov 27, 2019

THANK YOU VERY MUCH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment