• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase
您的位置:首页 > 数据库 >DB2 > DB2 sqlstate 57016 原因码 "7"错误

DB2 sqlstate 57016 原因码 "7"错误

作者:匿名 字体:[增加 减小] 来源:互联网 时间:2017-06-28

匿名通过本文主要向大家介绍了db2 sqlstate 42601,db2 sqlstate 08004,db2 sqlstate 42703,db2 sqlstate 08001,db2 sqlstate 22007等相关知识,希望本文的分享对您有所帮助
</div>

对表进行任何操作都不被允许,提示SQLSTATE=57016 SQLCODE=-668 ,原因码 "7"的错误:SQL0668N Operation not allowed for reason code "7" on table XXX.

首先查一下:

db2 ? 57016

SQLSTATE 57016: 因为表不活动,所以不能对其进行访问。

解决方法为:执行命令:reorg table XXX;即可。

参考原文为:

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 通过重构行来消除“碎片”数据并压缩信息,对表进行重组。

runstats on table . 收集表 的统计信息。

reorgchk on table all 确定是否需要对表进行重组,对于对所有表自动执行 runstats 很有用。

>>> reorg 和runstats 都是单个表优化,初始化的命令:

runstats on table administrator.test;

reorg table administrator.test;

</div> </div> </div> </div>
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • DB2 sqlstate 57016 原因码 "7"错误
  • DB2 sqlstate 57016 原因码 "7"错误

相关文章

  • 2017-06-28DB2 9 数据库管理之安排作业
  • 2017-06-28灵活有效的数据仓库解决方案,第 3 部分: 设计并实现仓库 ETL 过程
  • 2017-06-28在 DB2 中使用 XML 模式和数据类型
  • 2017-06-28DB2 XML 编程,第 2 部分: 在应用程序体系结构中使用 XML 数据库支持
  • 2017-06-28利用您的 Microsoft SQL Server 2000 技能来学习 DB2 UDB V8
  • 2017-06-28DB2 最佳实践: 使用 DB2 pureXML 管理 XML 数据的最佳实践,第 2 部分:向 DB2 数据库中添加 XML 数据指南
  • 2017-06-28DB2 9 pureXML与CLOB或分解式XML存储之间的性能对比
  • 2017-05-11DB2 9(Viper)快速入门
  • 2017-06-28DB2建立nickname导致CRASH解决方法
  • 2017-06-28如何在SQL存储过程中处理错误

文章分类

  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase

最近更新的内容

    • 使用 Apache 的 POI 和 HSSF 将 Excel 电子表格数据加载到 DB2
    • 怎样进行成功的数据库迁移
    • DB2 V9.1新功能:支持IPv6协议
    • 使用 IBM DB2 跟踪和 Eclipse Modeling Framework 检测资源泄漏
    • 灵活有效的数据仓库解决方案,第3部分:设计并实现仓库ETL过程
    • 在 DB2 Data Warehouse Edition 中使用 Business Intelligence Reporting Tool 3
    • DB2 中 MQT 的匹配原理及使用技巧
    • DB2 日常维护技巧,第 2 部分:实例和常用备份策略
    • 新锐洞察构建智慧的地球
    • 一个SQL存储过程

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有