Stack Overflow解决方案:

cx_Oracle版本问题,在cx_Oracle5版本上有部分限制,在cx_Oracle6版本上没有此项限制。

This is a limitation of versions of cx_Oracle 5 and earlier. The new version (cx_Oracle 6) doesn't have this limitation. You can upgrade using this command:

python -m pip install cx_Oracle --upgrade

更新完成之后,程序运行通过。

原因分析:

cx_oracle读取oracle wm_concate函数操作过后的长文本clob字段,当使用fetchall或者fetchmany读取数据时,报上面的错

In cx_Oracle 5 and earlier the LOB locators were stored in the array used for fetching; so each round trip to the database would overwrite the LOB locators from the previous fetch. In cx_Oracle 6, the LOB locators are associated with the LOBs themselves.

加入此项限制的原因:

Internally, Oracle uses LOB locators which are allocated based on the cursor array size. Thus, it is important that the data in the LOB object be manipulated before another internal fetch takes place. The safest way to do this is to use the cursor as an iterator. In particular, do not use the fetchall() method. The exception “LOB variable no longer valid after subsequent fetch” will be raised if an attempt to access a LOB variable after a subsequent fetch is detected.

Oracle大数据量读取:LOB variable no longer valid after subsequent fetch相关推荐

  1. LOB variable no longer valid after subsequent fetch

    cx_oracle读取oracle wm_concate函数操作过后的长文本clob字段,当使用fetchall或者fetchmany读取数据时,报上面的错 参考下面的文档,发现只能使用下面2种方式中 ...

  2. Python报错:ProgrammingError: LOB variable no longer valid after subsequent fetch

    2019-05-21,在开发中遇到这样一个报错信息: ProgrammingError: LOB variable no longer valid after subsequent fetch 经网上 ...

  3. python cx_oracle 取回数据后 LOB variable no longer valid after subsequent fetch

    问题如题:python cx_oracle 取回数据后 LOB variable no longer valid after subsequent fetch 解决方法: for fetch in c ...

  4. oracle大数据量迁移,分批量导入样例(fetch...bulk collect)以及forall结合使用

    //插入时不产生日志, alter table IALHospitalInfo nologging; //记录时间 set timing on; declareCURSOR cur is select ...

  5. oracle大数据量插入慢咋整

    oracle大数据量插入慢咋整 alter index ind_t_object_id unusable; 下面是测试的过程: SQL> insert into milktest select ...

  6. MySQL 和 Oracle 大数据量分页查询方法及其优化

    MySQL大数据量分页查询方法及其优化 ---方法1: 直接使用数据库提供的SQL语句 ---语句样式: MySQL中,可用如下方法: SELECT * FROM 表名称 LIMIT M,N ---适 ...

  7. (转)用Ajax技术让IE Web Control Tree View实现大数据量读取

    转自:http://www.cnblogs.com/dingsea/archive/2005/10/26/262220.html 相信不少人都用过微软提供的一款控件: IEControl, 其中的Tr ...

  8. Oracle 大数据量查询优化

    前言:平常写的SQL可能主要以实现查询出结果为主,但如果数据量一大,就会突出SQL查询语句优化的性能独特之处.一般的数据库设计都会建索引查询,这样较全盘扫描查询的确快了不少.下面总结下SQL查询语句的 ...

  9. oracle大数据量删除方案

    oracle进行大数据量删除的时候,容易报错表temp表空间空间不够导致删除失败,此时的处理方案有: 方案一: 分批删除,提交之后继续执行 方案二: 当剩下的数据量小于待删除的数据量时,可以使用转表的 ...

最新文章

  1. Puppeteer爬虫初探
  2. AutoIt3(AU3)开发的智能驱动安装工具,用于系统封装,支持参数静默启动
  3. linux内存系统管理,Linux内存管理之伙伴系统(内存释放)
  4. 怎样把本软件是否注册的标志加在程序里?(注:不想加在数据库里)
  5. 已经被处理的消息不能丢
  6. Json.Net系列教程 3.Json.Net序列化和反序列化设置
  7. 工作318:uni-切换tabber修改状态修饰
  8. js判断IE内核,IE浏览器版本
  9. 人工智能、大数据、云计算概念
  10. SQLServer2019 如何导出单张表数据
  11. 神经网络拟合函数表达式,神经网络拟合函数matlab
  12. 如果把小程序业务和研发管理都放到一个平台
  13. EL表达式基础语法总结
  14. 说说org.json.JSONObject功能和源码(二)
  15. 利用腾讯云函数服务进行每日wps签到打卡(部分失效)
  16. 《墨水心》(Inkheart)
  17. 文件 组织 服务器 数据库,nc文件服务器 数据库文件
  18. 如何带领好新的员工?
  19. linux文件系统lv是什么意思,Linux LVM系列(二)lv缩容
  20. Linux必备技能:vi的使用

热门文章

  1. Firefox 使用、设置和常见问题的解决方法
  2. (Win8、Win7)MAK激活密钥分享【资源有限】
  3. 安卓手机小说阅读器_【手机软件】安卓+iOS双箭齐发,全网小说阅读神器,且iOS版已上架!无广告、免登陆、全免费!...
  4. SpringBoot整合Mybatis3 Dynamic Sql(IDEA)
  5. 万里长征——基础IO
  6. 记者成互联网公司老板,他把猪八戒网做到市值百亿
  7. [OpenCV实战]29 使用OpenCV实现红眼自动去除
  8. getline() 把我弄得真捉急,菜鸟表示很无力
  9. element组件---Form
  10. 你的电脑里还在装着360杀毒软件吗?最好用的,免费的都在这里,给你的电脑换个好的杀软~!...