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: 提取违反顺序”
ORA-01002 提取违反顺序相关推荐
- java ora 01002,ORA-01002 提取违反顺序
ORA-01002 提取违反顺序 ORA-01002 ORA-01002: fetch out of sequence Cause: This error means that a fetch has ...
- java 提取违反顺序_oracle 中 java.sql.SQLException: ORA-01002: 提取违反顺序
在一个流程中设置了一个机器人节点,目的是:审批结束后,通过update语句,将表单中的一些内容更新到数据库person_info_t的表中,并将更新前后的值记录到新表info_update_recor ...
- oracle提取违反,ORA-01002: 提取违反顺序的问题分析
前段时间,监控每天晚上跑的ETL程序,发现有个程序报ORA-01002: 提取违反顺序的错误. Oracle的官方文档里对这个错误的解释是: Cause: This error means that ...
- @Modifying注解,否则报错ORA-01002: 提取违反顺序
在此记录下jpa的知识点: 1.使用删除.修改操作时需要在方法上多增加一个@Modifying注解,否则报错ORA-01002: 提取违反顺序 2.使用本地sql时,在@Query注解中需要增加nat ...
- 线性回归 假设_违反线性回归假设的后果
线性回归 假设 动机 (Motivation) Recently, a friend learning linear regression asked me what happens when ass ...
- Oracle事件诊断列表
oracle事件诊断列表,从0到20000,并输出到文件oracle.txt中. SET linesize 120 SET feedback off SET SERVEROUTPUT ON spool ...
- oracle 使用杂记
select a.c1,b.c2 from ta a,tb b 不指定条件的连接查询会把两个表的记录按笛卡尔积连接起来(nxn) 静态cursor与REF cursor 静态光标不能返回到客户端 ...
- oracle9i升11g,[原创]总结9i升级11g遇到的问题
问题三 1.错误描述 9i升级到11g之后执行储存过程报错 ORA-29471: DBMS_SQL 访问被拒绝 ORA-06512: 在 "SYS.DBMS_SQL", line ...
- Oracle 错误总结及问题解决 ORA
使用 Ctrl + F 搜索错误代码 ORA-00001: 违反唯一约束条件 (.) 错误说明:当在唯一索引所对应的列上键入重复值时,会触发此异常. ORA-00017: 请求会话以设置跟踪事件 OR ...
最新文章
- 【图论技巧】点边转化(拆点和拆边)
- windowbuilder点击按钮出现新界面_掌握这几招,轻松设计出高点击率的行为召唤按钮...
- 08.LoT.UI 前后台通用框架分解系列之——多样的Tag选择器
- 三分法解决凸(凹)函数极值问题
- 图形的认识(curve,surface,hypersurface)
- 在软件开发中应用80:20原则
- 使用Storyboard 创建ViewController
- C++对象池技术剖析
- 【生信进阶练习1000days】day11day12-GEO data mining
- App.config“配置系统未能初始化” 异常解决 C#
- 小白快速入门Laravel 5.8框架
- 格式化U盘并测试读写速度
- 机器学习之利用线性回归预测波士顿房价和可视化分析影响房价因素实战(python实现 附源码 超详细)
- ptp4l linux,如何使用PTP4l测试PTPV2协议精度?
- html中outline属性,css的outline属性的作用是什么
- 武汉大学 计算机学院 曹瑀,武大计算机青协
- 微信公众号获取用户头像
- 洛谷P4324 扭动的回文串
- Collection.sort()方法
- Power Pivot选项卡不显示