SQL0668N Operation not allowed for reason code 3 on table TEST.
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
操作步骤:
第一:
[test@TEST-DB1 ~]$ db2 "reorg table test"SQL0668N Operation not allowed for reason code "3" on table "test".
SQLSTATE=57016
第二:
[test@TEST-DB1 ~]$ db2 load from / of del terminate into testAgent Type Node SQL Code Result
______________________________________________________________________________
LOAD 001 +00000000 Success.
______________________________________________________________________________
LOAD 002 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 003 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 004 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 005 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 006 +00000000 Success.
______________________________________________________________________________
LOAD 007 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 008 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 009 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 010 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 011 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 012 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 013 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 014 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 015 -00027902 Init error. Table unchanged.
______________________________________________________________________________
LOAD 016 -00027902 Init error. Table unchanged.
______________________________________________________________________________
RESULTS: 2 of 16 LOADs completed successfully.
______________________________________________________________________________
Summary of LOAD Agents:
Number of rows read = 0
Number of rows skipped = 0
Number of rows loaded = 0
Number of rows rejected = 0
Number of rows deleted = 0
Number of rows committed = 0
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.相关推荐
- DB2遇到这样一个问题 。 ‘’Operation not allowed for reason code 7 on table DB2ADMIN.XXX. SQLSTATE=5701‘’
工作中数据库:DB2遇到这样一个问题 . ''Operation not allowed for reason code "7" on table "DB2ADMIN.X ...
- [Code: -668, SQL State: 57016] Operation not allowed for reason code “7“ on table “XXX“.. SQLCODE=-
db2 表字段操作 –新增字段 alter table Student add T56 DECIMAL(12,2) ; –删除字段 alter table Student drop column T5 ...
- 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 ...
- ORA-00392: log 3 of thread 1 is being cleared, operation not allowed
数据库:oracle 11.2.0.4 系统:AnolisOS7.9 问题描述:Rman恢复后,以resetlogs方式打开数据库,报错ORA-00392.ORA-00312,如下所示: SQL> ...
- ORA-00392: log 4 of thread 2 is being cleared, operation not allowed
alter database open resetlogs或者 alter database open resetlogs upgrade报错:ORA-00392 在rman restore 还原数 ...
- Oracle:ORA-00392: log 3 of thread 1 is being cleared, operation not allowed
原文地址:http://d-prototype.com/archives/5249 如题所示的问题发生在数据库的启动过程中,具体如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ...
- ORA-00392: log 15 of thread 1 is being cleared, operation not allowed
今天在做recover database后使用alter database open resetlogs打开数据库遇到错误 描述一下之前的操作步骤 1,还原数据文件 run{ set newname ...
- 「GitLab CI/CD」- You are not allowed to download code from this project @20210402
问题描述 在 GitLab CI/CD 中,执行 Pipeline 产生如下错误: Running with gitlab-runner 12.6.0 (ac8e767a)on ci-node Je2 ...
最新文章
- python爬去百度文库_利用Python语言轻松爬取数据[精品文档]
- SMTP 通过 ssh 通道发送垃圾邮件
- java读取doc文档
- [原创]微软网络协议数据分析工具 Microsoft Network Monitor 介绍
- Vue.js 模板语法
- java中的序列化和反序列化
- 几种开发时安全验证的实现
- docker $PWD路径_使用docker炼丹
- MySQL-Front的安装简介
- java vector_Java Vector sureCapacity()方法与示例
- 插入,冒泡,选择,快速,归并,堆排序,java 泛型实现
- ES6学习(二)—变量的解构赋值
- Triangle Generative Adversarial Networks
- HTML+CSS——网页设计项目完整版本(阿里矢量图标库)分享
- 安装ALEXA工具条
- Qt界面刷新优化的一些心得
- pip install 安装报错:ValueError: check_hostname requires server_hostname
- noip2016 day1 t2 天天爱跑步
- 51Nod 1677 treecnt
- 【PBR系列七】基于物理的环境光照(下):镜面反射 IBL(Specular IBL)