db2cmd下执行下面创建临时表:
declare global temporary table results(recid varchar(32),xxly varchar(100),lxdh varchar(32),fkrq date)on commit preserve rows with replace not logged
报错:
SQL0286N 找不到页大小至少为 "4096" 且许可授权标识 "DB2ADMIN" 使用的表空间。
SQLSTATE=42727
【解析】没有创建临时表空间
【解决方案】
--执行下面的语句
create user temporary tablespace my_temp_tabspace
--再重新执行创建临时表的语句
declare global temporary table results(recid varchar(32),xxly varchar(100),lxdh varchar(32),fkrq date)on commit preserve rows with replace not logged