Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ORA-01000: Maximum open cursors exceeded

Status
Not open for further replies.

NiceButDim

Programmer
Feb 12, 2002
154
GB
Hi,
I hope that this is the correct forum for this question.

I am looking at an intermittant problem in a java program; 'Maximum open cursors exceeded'. The bit of code at fault accesses many tables inside a large loop. Each time it accesses a table it does the following at the start of the block;

Statement st2 = con.createStatement();
ResultSet rs2 = st2.executeQuery(sql);

and then at the end of the block;

rs2.close()
st2.close()

However, I have spotted in 1 instance that the createStatement object is not being closed.

My question is, could this possibly be the source of the problem?

Thanks a lot.

john.
 

Yes. [3eyes]

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top