• 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-28DBA必须具备跨平台管理不同RDBMS的能力
  • 2017-06-28DB2数据库完整性暂挂SQL0668N的错误案例
  • 2017-06-28在 DB2 Data Warehouse Edition 中使用 Business Intelligence Reporting Tool 1
  • 2017-05-11DB2编程序小小技巧
  • 2017-06-28执行DB2的命令有哪些方式
  • 2017-06-28DB2 V8数据库基础(一)
  • 2017-06-28DB2 日常维护技巧,第 4 部分:数据库代码页、表结构等
  • 2017-06-28基于DB2及PHP的应用系统跨平台迁移详细步骤(一)
  • 2017-06-28针对基础设计、性能和可管理性的DB2最佳实践
  • 2017-06-28DB2 V9.7 本地分区索引

文章分类

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

最近更新的内容

    • 高性能数据挖掘:在 InfoSphere Balanced Warehouse 中使用 SAS PMML 模型的并行计分性能
    • DB2常用命令集
    • CentOS下DB2数据库安装过程详解
    • 使用服务器辅助的客户端重定向实现 DB2 的无限制扩展
    • DB2 日常维护技巧,第 1 部分:数据库日志错误处理
    • DB2创建跨库视图
    • 一个SQL存储过程
    • 使用DB2look重新创建优化器访问计划(7)
    • 如何在DB2里面更新执行计划
    • DB2 基础: 使用 DB2 数据移动实用工具中的文件类型修饰符

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

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