1 问题现象
Runstats表的时候抛出sqlcode:-2310,sqlerrmc:-668
https://www.cndba.cn/hbhe0316/article/4885
https://www.cndba.cn/hbhe0316/article/4885
https://www.cndba.cn/hbhe0316/article/4885
https://www.cndba.cn/hbhe0316/article/4885
2 问题诊断
检查该表是否处于Reorg Pending状态https://www.cndba.cn/hbhe0316/article/4885https://www.cndba.cn/hbhe0316/article/4885
db2 load query table <tabschema>.<tabname>
Tablestate:
Reorg Pending
检查哪些表处于Reorg Pending状态https://www.cndba.cn/hbhe0316/article/4885https://www.cndba.cn/hbhe0316/article/4885
db2 "select varchar(tabschema,20),varchar(tabname,40),REORG_PENDING from sysibmadm.admintabinfo where REORG_PENDING='Y'"
3 问题恢复
需要对该表进行reorghttps://www.cndba.cn/hbhe0316/article/4885
https://www.cndba.cn/hbhe0316/article/4885
su - <instancename>
db2 connect to <dbname>
db2 reorg table <tabschema>.<tabname>
版权声明:本文为博主原创文章,未经博主允许不得转载。
DB2