ORA-30009: Not enough memory for CONNECT BY operation
来源:互联网 发布:淘宝食品类目规则 编辑:程序博客网 时间:2024/05/20 09:11
其实这个是sga内存不足,ok,是这样的。但是不要一味的加大内存,先看看你的程序,一定要把内存占用完,直到报错,才提交?
所以可以直接修改提交的频次。 这样把数据存物理盘,就不会出现这样的问题
insert 未提交,就在buffer cache或data file(undo)。
出错前
declare v_commit int ;BEGIN v_commit:=0; FOR cur IN ( select * from ( select startip,endip,endip-startip as jk,country,province,city,mno from cfg_globalipseg_0726 where startip<>endip and startip in (select startip from ml_456) ) where jk>100000 and jk<=200000 ) LOOP BEGIN insert into cfg_globalipseg_0801_zk_2 select cur.startip +rownum-1 as startip ,cur.startip +rownum-1 as endip ,cur.country ,cur.province ,cur.city ,cur.mno from dual connect by level <= cur.jk+1; v_commit:=v_commit+1; if mod(v_commit,1000)=0 then commit; end if; END; END LOOP; commit;END;
declare v_commit int ;BEGIN v_commit:=0; FOR cur IN ( select * from ( select startip,endip,endip-startip as jk,country,province,city,mno from cfg_globalipseg_0726 where startip<>endip and startip in (select startip from ml_456) ) where jk>100000 and jk<=200000 ) LOOP BEGIN insert into cfg_globalipseg_0801_zk_2 select cur.startip +rownum-1 as startip ,cur.startip +rownum-1 as endip ,cur.country ,cur.province ,cur.city ,cur.mno from dual connect by level <= cur.jk+1; v_commit:=v_commit+1; if mod(v_commit,10)=0 then commit; end if; END; END LOOP; commit;END;
--其实就是修改了,commit 频次。
if mod(v_commit,1000)=0 then commit; end if;
0 0
- ORA-30009: Not enough memory for CONNECT BY operation
- ORA-30009: Not enough memory for CONNECT BY operation
- ORA-30009: Not enough memory for CONNECT BY operation
- ORA-30009: Not enough memory for CONNECT BY operation
- Bug 11805372 - ORA-30009 "not enough memory" for certain CONNECT BY statements [ID 11805372.8]
- ORA-00371 not enough shared pool memory
- ORA-00371: not enough shared pool memory解决方法
- gitk not enough memory
- luajit: not enough memory
- VM---Not enough physical memory
- 关于VMware提示there is not enough space on the file system for the selected operation
- org.codehaus.xfire.fault.XFireFault: Not enough message parts were received for the operation.
- WebService调用时的异常:Not enough message parts were received for the operation
- ORA-32773: operation not supported for smallfile tablespace
- ORA-32773: operation not supported for smallfile tablespace TOOLS
- cannot connect to vm :could not reserve enough space for object heap
- Operation CONNECT BY WITH FILTERING
- ORA-30009: CONNECT BY 操作内存不足
- Android TextureView简易教程
- tjut 1542
- 利用MOG2背景模型提取运动目标的OpenCV代码
- 网络工程1.14——网际层
- 一维费用的背包问题模板
- ORA-30009: Not enough memory for CONNECT BY operation
- 获取文件夹下de所有文件名
- x264 参数详解【很强大、很细致,不再为不懂啥意思很烦恼】
- Y - Farey Sequence
- struts2和spirngmvc的区别
- 网站整理
- Intersection of Two Arrays II
- 梦中回想
- TCP协议中的三次握手和四次挥手