ORA-01002 提取违反顺序

ORA-01002 
ORA-01002: fetch out of sequence 
Cause: This error means that a fetch has been attempted from a cursor which is no longer valid. 
Note that a PL/SQL cursor loop implicitly does fetches, and thus may also cause this error. 
There are a number of possible causes for this error, including: 1) Fetching from a cursor 
after the last row has been retrieved and the ORA-1403 error returned. 2) If the cursor has 
been opened with the FOR UPDATE clause, fetching after a COMMIT has been issued will return 
the error. 3) Rebinding any placeholders in the SQL statement, then issuing a fetch before 
reexecuting the statement. 
Action: 1) Do not issue a fetch statement after the last row has been retrieved 
- there are no more rows to fetch. 
2) Do not issue a COMMIT inside a fetch loop for a cursor that has been opened FOR UPDATE. 
3) Reexecute the statement after rebinding, then attempt to fetch again.

如果在遍历游标的时候 
有insert的操作,并且执行了commit 
那么,oracle会提示“ORA-01002: 提取违反顺序”

转自:http://zsd12379.iteye.com/blog/1601155

ORA-01002 提取违反顺序相关推荐

  1. java ora 01002,ORA-01002 提取违反顺序

    ORA-01002 提取违反顺序 ORA-01002 ORA-01002: fetch out of sequence Cause: This error means that a fetch has ...

  2. java 提取违反顺序_oracle 中 java.sql.SQLException: ORA-01002: 提取违反顺序

    在一个流程中设置了一个机器人节点,目的是:审批结束后,通过update语句,将表单中的一些内容更新到数据库person_info_t的表中,并将更新前后的值记录到新表info_update_recor ...

  3. oracle提取违反,ORA-01002: 提取违反顺序的问题分析

    前段时间,监控每天晚上跑的ETL程序,发现有个程序报ORA-01002: 提取违反顺序的错误. Oracle的官方文档里对这个错误的解释是: Cause: This error means that ...

  4. @Modifying注解,否则报错ORA-01002: 提取违反顺序

    在此记录下jpa的知识点: 1.使用删除.修改操作时需要在方法上多增加一个@Modifying注解,否则报错ORA-01002: 提取违反顺序 2.使用本地sql时,在@Query注解中需要增加nat ...

  5. 线性回归 假设_违反线性回归假设的后果

    线性回归 假设 动机 (Motivation) Recently, a friend learning linear regression asked me what happens when ass ...

  6. Oracle事件诊断列表

    oracle事件诊断列表,从0到20000,并输出到文件oracle.txt中. SET linesize 120 SET feedback off SET SERVEROUTPUT ON spool ...

  7. oracle 使用杂记

    select a.c1,b.c2 from ta a,tb b    不指定条件的连接查询会把两个表的记录按笛卡尔积连接起来(nxn) 静态cursor与REF cursor 静态光标不能返回到客户端 ...

  8. oracle9i升11g,[原创]总结9i升级11g遇到的问题

    问题三 1.错误描述 9i升级到11g之后执行储存过程报错 ORA-29471: DBMS_SQL 访问被拒绝 ORA-06512: 在 "SYS.DBMS_SQL", line ...

  9. Oracle 错误总结及问题解决 ORA

    使用 Ctrl + F 搜索错误代码 ORA-00001: 违反唯一约束条件 (.) 错误说明:当在唯一索引所对应的列上键入重复值时,会触发此异常. ORA-00017: 请求会话以设置跟踪事件 OR ...

最新文章

  1. 【图论技巧】点边转化(拆点和拆边)
  2. windowbuilder点击按钮出现新界面_掌握这几招,轻松设计出高点击率的行为召唤按钮...
  3. 08.LoT.UI 前后台通用框架分解系列之——多样的Tag选择器
  4. 三分法解决凸(凹)函数极值问题
  5. 图形的认识(curve,surface,hypersurface)
  6. 在软件开发中应用80:20原则
  7. 使用Storyboard 创建ViewController
  8. C++对象池技术剖析
  9. 【生信进阶练习1000days】day11day12-GEO data mining
  10. App.config“配置系统未能初始化” 异常解决 C#
  11. 小白快速入门Laravel 5.8框架
  12. 格式化U盘并测试读写速度
  13. 机器学习之利用线性回归预测波士顿房价和可视化分析影响房价因素实战(python实现 附源码 超详细)
  14. ptp4l linux,如何使用PTP4l测试PTPV2协议精度?
  15. html中outline属性,css的outline属性的作用是什么
  16. 武汉大学 计算机学院 曹瑀,武大计算机青协
  17. 微信公众号获取用户头像
  18. 洛谷P4324 扭动的回文串
  19. Collection.sort()方法
  20. Power Pivot选项卡不显示

热门文章

  1. Anaconda安装Tensorflow环境
  2. [转载]使用awk进行数字计算,保留指定位小数
  3. 多域名解析到同一网站C的php重定向代码
  4. 2月第3周国内域名商TOP10:爱名网排名升至第八
  5. 基于小波变换的数字图像处理(MATLAB源代码)
  6. 看视频学编程之最最基础的基础(1)
  7. 【学习生活杂谈】学习记录
  8. LVM( Logical Volume Manager )配置案例(on RHEL4)
  9. JavaScript工具
  10. 映世便携音箱我对你一见钟情啦~