insert数据时,报ORA-01555 22924错误
来源:互联网 发布:网络新媒体技术杂志 编辑:程序博客网 时间:2024/05/22 03:21
今天研发部门的一位朋友,在对某个表进行插入操作时报了ORA-01555 ORA-22924错误,
询问数据库版本:9.2.0.1,说是由于误删除,然后想把数据找回来,自己找了一个命令进行插入操作时,报的错误,插入语句如下:
insert into fp_zb_bak (select * from fp_zb as of timestamp trunc(sysdate));
后来从网上搜索解决方案,问题得到解决,最终确认是由于fp_zb这张表中包括有blob字段,然后该字段有的记录内容已经corrupt,导致报该错误,解决方法如下:
create table c_blob_data (c_rowid rowid);set concat offdeclare error_1555 exception; pragma exception_init(error_1555,-1555); num number;begin for cursor_lob in (select rowid r, &&lob_column from &table_owner.&table_with_lob) loop begin num := dbms_lob.instr (cursor_lob.&&lob_column, hextoraw ('889911')) ; exception when error_1555 then insert into c_blob_data values (cursor_lob.r); commit; end; end loop;end;/然后通过过滤掉这些记录,或者update t set lob_bcol=empty_blob() where rowid='xxxxxxx';更新损坏的blob列,就OK了。
- insert数据时,报ORA-01555 22924错误
- 数据泵导出报ORA-31617错误
- Awrload导入数据报ORA-20104、ORA-06512错误处理
- mybatis 执行insert语句总是报错,ORA-00911 无效字符错误解决方法
- 关于oracle 11g导出数据时 报 ORA 1455错误的处理
- ORACLE 11G导入数据报ORA-12154错误解析
- ORACLE删除数据报ORA 02292错误解决方法
- oralce 启动时 报 ORA-00119 ORA-00132 错误
- expdp 导出报ORA-01555: snapshot too old错误
- Navicat 连接 oracle 时 报 ORA-28547 错误
- oracle ORA-01704问题(clob字段insert报错)
- Oracle 11.2.0.1执行数据泵导入导出操作,导入日志报ORA-39083和ORA-14102错误
- Oracle 11.2.0.1执行数据泵导入导出操作,导入日志报ORA-39083和ORA-14102错误
- PLsql登录oracle数据 报 “ora-12541:TNS:无监听程序”错误
- PL/sql developer登录oracle数据 报 “ora-12541:TNS:无监听程序”错误
- 解决数据导入(impdp)时ORA-29283报错
- 没有重复的数据在insert 时:ORA-00001:违反唯一约束条件
- django 存储数据时 报 IntergrityErrror错误
- JVM优化:缩短eclipse的启动时间
- 百度地图的环境搭建(基于百度地图1.3.3)
- NLS_LANG is not defined on the client.Character set conversion may cause unexpected results
- 过滤器Filter配置总结
- Windows如何打包Qt程序
- insert数据时,报ORA-01555 22924错误
- Android开发点点滴滴——一些基础的但有用的知识
- Qt Creator中常用快捷键
- java.lang.OutOfMemoryError: PermGen space及其解决方法
- Gamblers
- webrtc 学习笔记1——总览
- 仿迅雷播放器教程
- RMAN 简单介绍
- [Qt教程] 第17篇 2D绘图(七)涂鸦板