Solved

ORA-01000 maximum open cursors exceeded

Posted on 2004-08-25
5
465 Views
Last Modified: 2010-03-31
I have written a large java program that inserts & Queries an Oracle database frequently.

I have started to notice I am getting the above mentioned error:
ORA-01000 maximum open cursors exceeded

I was wondering what would cause this (Code -wise) e.g. not closing statements ??

Thanks for any help
0
Comment
Question by:chocobogo
  • 2
  • 2
5 Comments
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 75 total points
ID: 11893328
>>e.g. not closing statements ??

YES - first place to start looking
0
 
LVL 2

Accepted Solution

by:
lmpsteelwire earned 75 total points
ID: 11893490
use the .close on your recordsets...that should fix it
0
 

Author Comment

by:chocobogo
ID: 11893748
Cheers, I expected as much...

Where else should I look if I still get this error after closing all the statements & resultSets ?
0
 
LVL 2

Expert Comment

by:lmpsteelwire
ID: 11893785
hmm...i dont know if you have a global connection or  you open/close connections...but be sure to close connections as well, when ur done using them
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11893854
>>use the .close on your recordsets...that should fix it

Closing Statements automatically closes ResultSets. Check connections as well
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Spring Framework HTTPSession management 1 45
maven module vs maven project 3 47
CSV file parsing thru Java 13 34
Crystal Reports Licensing Questions 4 36
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
The viewer will learn how to implement Singleton Design Pattern in Java.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question