oracle的基本sql介绍Java学习笔记

关于Oracle cursors exceeded

2017-05-23  本文已影响14人  stone305585

最近一个项目使用了Lucene,其中创建索引后需要同步数据库表,循环2000个id同步数据时出现

ORA-01000: maximum open cursors exceeded
error occurred at recursive SQL level 1

明显cursor开的太多了
于是
。。
。。
查资料:在oracle command line中执行
1:显示当前数据库的cursor最大数
show parameter open_cursors;
2:设置最大数
alter system set parameter= 65535 scope=both;

这里直接设置最大。。。

其中scope参数的意思:

上一篇 下一篇

猜你喜欢

热点阅读