Failing update table in db2 with SQLCODE: -668, SQLSTATE: 57016, SQLERRMC: 7;

白昼怎懂夜的黑 提交于 2019-12-03 12:03:30

It follows from the error message, that you somehow submit the entire string Database["DB2"].ExecuteNonQuery("call SYSPROC.ADMIN_CMD ('REORG TABLE DB2ADMIN.XCATENTRYEXT index CATENTRY_ID INPLACE')") as a SQL statement, which obviously is incorrect.

Simply issue these on the shell command line:

db2 connect to <your database name here>
db2 REORG TABLE DB2ADMIN.XCATENTRYEXT

It is possible to do REORG through an SQL statement:

CALL SYSPROC.ADMIN_CMD('REORG TABLE SCHEMA.TABLENAME');
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!