SQL0668N Operation not allowed for reason code "3" on table "TEST". SQLSTATE=57016
问题描述:
查询,操作表都报如下错误
SQL0668N Operation not allowed for reason code "3" on table "TEST". SQLSTATE=57016
操作步骤:
第一:执行reorg解锁表,出现以下错误。
[test@TEST-DB1 ~]$ db2 "reorg table test"
SQL0668N Operation not allowed for reason code "" on table "test".
SQLSTATE=
第二:Load空文件对表进行terminate,出现以下错误。
[test@TEST-DB1 ~]$ db2 load from / of del terminate into test Agent Type Node SQL Code Result
______________________________________________________________________________
LOAD + Success.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD + Success.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
LOAD - Init error. Table unchanged.
______________________________________________________________________________
RESULTS: of LOADs completed successfully.
______________________________________________________________________________ Summary of LOAD Agents:
Number of rows read =
Number of rows skipped =
Number of rows loaded =
Number of rows rejected =
Number of rows deleted =
Number of rows committed = SQL27902N LOAD RESTART/TERMINATE is not allowed on a table that is not in
LOAD PENDING state.
一般上面两步基本能解决表无法操作问题,不过也有的跟这次一样无法完成,
分析可能是部分分区没有进行terminate或者load时被强制杀了
第三:查询分区表状态
[test@TEST-DB1 ~]$ db2 -x "SELECT DBPARTITIONNUM FROM TABLE(SYSPROC.ADMIN_GET_TAB_INFO('TEST','TEST')) AS T where load_status='PENDING' "
挨个对上面查询出的分区号进行terminate处理
[test@TEST-DB1 ~]$db2 load from /dev/null of del terminate into TEST.TEST partitioned db config OUTPUT_DBPARTNUMS('分区号')
执行完成!
SQL0668N Operation not allowed for reason code "3" on table "TEST". SQLSTATE=57016的更多相关文章
- db2数据库表操作错误SQL0668N Operation not allowed for reason code "1" on table "表". SQLSTATE=57016的解决方法
错误sql Operation not allowed for reason code "1" on table "MARKET.PURE_USER".. SQ ...
- Operation not allowed for reason code "7" on table 原因码 "7"的解决
对表进行任何操作都不被允许,提示SQLSTATE=57016 SQLCODE=-668 ,原因码 "7"的错误:SQL0668N Operation not allowed for ...
- db2报错 Operation not allowed for reason
1.DB2数据库表操作错误SQL0668N Operation not allowed for reason code "1" on table "XXXX". ...
- Operation not allowed after ResultSet closed--操作mysql数据库
一个stmt多个rs进行操作.那么从stmt得到的rs1,必须马上操作此rs1后,才能去得到另外的rs2,再对rs2操作.不能互相交替使用,会引起rs已经关闭错误——Operation not all ...
- SQLExecption:Operation not allowed after ResultSet closed解决办法
原网址:http://blog.csdn.net/sku0923/article/details/1722370 一个stmt多个rs进行操作引起的ResultSet已经关闭错误 一个stmt多个rs ...
- 解决数据库Operation not allowed when innodb_forced_recovery > 0
解决数据库Operation not allowed when innodb_forced_recovery > 0 请修改my.cnf innodb_force_recovery = 1 修改 ...
- Operation not allowed on a unidirectional dataset错误?
关于网友提出的“ Operation not allowed on a unidirectional dataset错误?”问题疑问,本网通过在网上对“ Operation not allowed o ...
- dbexpress连接mysql提示Operation not allowed on a unidirectional dataset
最近刚接触delphi,在了解到dbExpress连接mysql的时候,出现了一些问题,特记录下 我遇到的问题有两个 1. TDBGrid --DataSet=TDataSource1 TDataSo ...
- remote: GitLab: You are not allowed to push code to protected branches on this project.
"C:\Program Files\Git\bin\git.exe" push --recurse-submodules=check --progress "origin ...
随机推荐
- Bzoj 2134: [国家集训队2011]单选错位(期望)
2134: 单选错位 Time Limit: 10 Sec Memory Limit: 259 MB Description Input n很大,为了避免读入耗时太多,输入文件只有5个整数参数n, A ...
- c实现单向链表
实现一个单向链表的:创建.插入.删除.排序(冒泡).逆向.搜索中间节点 #include <iostream> #include <stdio.h> #include < ...
- JavaWeb_(Spring框架)注解配置
系列博文 JavaWeb_(Spring框架)xml配置文件 传送门 JavaWeb_(Spring框架)注解配置 传送门 Spring注解配置 a)导包和约束:基本包.aop包+context约束 ...
- cxf报错 Cannot find any registered HttpDestinationFactory from the Bus.
错误信息:Cannot find any registered HttpDestinationFactory from the Bus. 报错主要是因为缺少jetty依赖 一般添加如下依赖即可 < ...
- plus.zip.compressImage 压缩报错{"code":-5,"message":"输出图片失败"}
var pathCompress = "_doc/" + getNowFormatDate(new Date()) + ' ' + Math.random() + ".c ...
- php判断两个数组是否相等
php判断两个数组是否相等 一.总结 一句话总结: php判断两个数组是否相等可以直接上==或者===号 二.php 判断两个数组是否相等 转自或参考:php 判断两个数组是否相等https://ww ...
- Linux下R环境安装
R环境的两种安装方式,源码编译安装和yum在线安装 第一种:源码编译安装 1.首先,从官网上下载3.5.0版本 2.下载完后记得解压,我的习惯是解压在/usr/local下面 tar -zxvf R- ...
- 手把手教你实现RecyclerView的下拉刷新和上拉加载更多
手把手教你实现RecyclerView的下拉刷新和上拉加载更多 版权声明:本文为博主原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接和本声明. 本文链接:https:// ...
- apt如何列出所有已经安装的软件包
apt如何列出所有已经安装的软件包 转 https://www.helplib.com/ubuntu/article_155294 问题: 我想将所有已安装软件包的列表输出到文本文件中,以便我可以查看 ...
- CentOS 7.4 发布下载,安全稳定的Linux发行版
CentOS 7.4 发布了.CentOS 是 RHEL(Red Hat Enterprise Linux)源代码再编译的产物,而且在 RHEL 的基础上修正了不少已知的 Bug ,相对于其他 Lin ...