DB2数据库 Operation not allowed for reason code "7" on table 原因码 "7"的解决方法
2017-01-10 13:42
519 查看
对表进行任何操作都不被允许,提示SQLSTATE=57016 SQLCODE=-668 ,原因码 "7"的错误:SQL0668N Operation not allowed for reason code "7" on table XXX. 解决方法为:
执行命令:
执行 CALL SYSPROC.ADMIN_CMD('reorg table XXXXXXX')
XXXXXXX'为表名
参考原文为:
Operation not allowed for reason code reason-code on table table-name.
Explanation: Access to table table-name is restricted. The cause is based on the following reason codes reason-code: 7
The table is in the reorg pending state. This can occur after an ALTER TABLE statement containing a REORG-recommended operation.7
Reorganize the table using the REORG TABLE command (note that INPLACE REORG TABLE is not allowed for a table that is in the reorg pending state).
其中:
reorg table <tablename> 通过重构行来消除“碎片”数据并压缩信息,对表进行重组。
runstats on table <tbschema>.<tbname> 收集表 <tbname> 的统计信息。
reorgchk on table all 确定是否需要对表进行重组,对于对所有表自动执行 runstats 很有用。
>>> reorg 和runstats 都是单个表优化,初始化的命令:
runstats on table administrator.test;
reorg table administrator.test;
执行命令:
执行 CALL SYSPROC.ADMIN_CMD('reorg table XXXXXXX')
XXXXXXX'为表名
参考原文为:
Operation not allowed for reason code reason-code on table table-name.
Explanation: Access to table table-name is restricted. The cause is based on the following reason codes reason-code: 7
The table is in the reorg pending state. This can occur after an ALTER TABLE statement containing a REORG-recommended operation.7
Reorganize the table using the REORG TABLE command (note that INPLACE REORG TABLE is not allowed for a table that is in the reorg pending state).
其中:
reorg table <tablename> 通过重构行来消除“碎片”数据并压缩信息,对表进行重组。
runstats on table <tbschema>.<tbname> 收集表 <tbname> 的统计信息。
reorgchk on table all 确定是否需要对表进行重组,对于对所有表自动执行 runstats 很有用。
>>> reorg 和runstats 都是单个表优化,初始化的命令:
runstats on table administrator.test;
reorg table administrator.test;
相关文章推荐
- Operation not allowed for reason code "7" on table 原因码 "7"的解决
- Operation not allowed for reason code "7" on table 原因码 "7"的解决
- Operation not allowed for reason code "7" on table 原因码 "7"的解决
- DB2数据库表操作错误SQL0668N Operation not allowed for reason code "1" on table "XXXX". SQLSTATE=57016的解决方法
- Operation not permitted on IsolatedStorageFileStream解决方法
- DB2中SQLSTATE=57016 SQLCODE=-668,原因码 "7"的解决方法
- 项目忽然出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法
- OrCAD导入PADS时出现“Not valid pin name for part type XX”错误的原因及解决方法
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- Operation not permitted on IsolatedStorageFileStream 解决方法
- 在JBoss中部署JSF应用时报错"Could not find backup for factory javax.faces.application.ApplicationFactory" 解决方法
- SpringMVC配置文件The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- Ext.data.proxy.Rest提交至*.ashx时出现"HTTP Error 405.0 - Method not allowed" 解决方法
- 遇到DB2 sqlstate 57016 原因码 "7"错误的解决方法
- "table" is not mapped 解决方法
- 错误"ORA-04091: table is mutating, trigger/function may not see it"的原因以及解决办法
- “Could not change executable permissions on the application”的原因和解决方法
- SVN提交时报"405 Method Not Allowed"错误的解决方法
- Virtual Disk "hard disk 3' is not accessible on the host 虚拟机不能启动的解决方法
- Qt错误:类中使用Q_OBJECT宏导致undefined reference to vtable for "xxx::xxx"错误的原因和解决方法