Solved

ORA-01000 maximum open cursors exceeded

Posted on 2004-08-25
5
468 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

687 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