• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 640
  • Last Modified:

Maximum open cursors exceed

Hi

I have a problem with Open Cursor in ORACLE JDBC. While im handling 3 different results sets im getting the following error.

java.sql.SQLException: ORA-01000: maximum open cursors exceeded

I have tried other solutions by increasing pool size and cursor size. I have to handle 10000 records which are coming form each ResultSet.

Its very urgent. Reply ASAP...
0
anumalas
Asked:
anumalas
4 Solutions
 
CEHJCommented:
Make sure you're closing de resources properly
0
 
ShoikanaCommented:
If you need the ResultSets together, you could dump each Result Set into a collection of records and then close the ResultSet.  
0
 
runa_paathakCommented:
You are probably not closing the ResultSet or Statement object properly. Close them in a finally block after you are done using them.
0
 
ctamrakarCommented:
increase the value of no.of open cursors parameter in  init.ora file. what is your current value for this parameter?
 But if you are not handling the cursors in JDBC code( closing resultset and statments) your program will consume
all the database cursor resources
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now