您的位置:首页 > 数据库

[非原子批处理出现故障]使用 getNextException() 来检索已经过批处理的特定元素的异常。 ERRORCODE=-4228, SQLSTATE=null

2012-11-30 08:54 846 查看
[jcc][t4][102][10040][3.57.82]非原子批处理出现故障。虽然已经提交了批处理,但是该批处理的某个成员至少发生了一个异常。

使用getNextException()来检索已经过批处理的特定元素的异常。ERRORCODE=-4228,SQLSTATE=null

查看db2diag.log日志:
2012-11-20-10.00.33.551000+480E27658279F1143LEVEL:Error
PID:2276TID:3796PROC:db2syscs.exe
INSTANCE:DB2NODE:000DB:NCTEST
APPHDL:0-49794APPID:20.10.80.247.48084.121120015251
AUTHID:NCTEST
EDUID:3796EDUNAME:db2agent(NCTEST)0
FUNCTION:DB2UDB,bufferpoolservices,sqlbAllocateExtent,probe:840
MESSAGE:ADM6044ETheDMStablespace"NNC_INDEX01"(ID"5")isfull.If
thisisanautoresizeorautomaticstorageDMStablespace,the
maximumtablespacesizemayhavebeenreachedortheexisting
containersorstoragepathscannotgrowanymore.Additionalspace
canbeaddedtothetablespacebyeitheraddingnewcontainersor
extendingexistingonesusingtheALTERTABLESPACESQLstatement.If
thisisanautoresizeorautomaticstorageDMStablespace,
additionalspacecanbeaddedbyaddingcontainerstoanautoresize
tablespaceorbyaddingnewstoragepathstoanautomaticstorage
database.

2012-11-20-10.00.33.551000+480I27659424F1147LEVEL:Warning
PID:2276TID:3796PROC:db2syscs.exe
INSTANCE:DB2NODE:000DB:NCTEST
APPHDL:0-49794APPID:20.10.80.247.48084.121120015251
AUTHID:NCTEST
EDUID:3796EDUNAME:db2agent(NCTEST)0
FUNCTION:DB2UDB,bufferpoolservices,sqlbObtainDataExtent,probe:800
MESSAGE:ZRC=0x85020021=-2063466463=SQLB_END_OF_CONTAINER
"DMSContainerspacefull"
DATA#1:Objectdescriptor,PD_TYPE_SQLB_OBJECT_DESC,88bytes
Obj:{pool:5;obj:11020;type:1}Parent={4;1360}
lifeLSN:000000005AAC4D6E
tid:000
extentAnchor:78560
initEmpPages:0
poolPage0:0
poolflags:102
objectState:27
lastSMP:0
pageSize:4096
extentSize:32
bufferPoolID:2
partialHash:705429509
bufferPool:0x000000001a7837a0
pdef:0x000000001a804160

从上述错误来看,是表空间NNC_INDEX01表空间被占满了。
看下NNC_INDEX01表空间使用情况:
db2=>listtablespacesshowdetail
发现可用页数已经变成了0。

查看报错的地方,是一个绑定变量+Batch的操作。insertintoIC_ATP_F,这个表有一个主键索引,而批量插入的时候肯定会用到索引表空间。
添加一个容器,altertablespacennc_index01add(file'\db2\nnc_index01_2'204800)

再次执行,问题解决。


转自:/article/5929557.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐