Solved

ORA-01000 maximum open cursors exceeded

Posted on 2004-08-25
5
461 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countPairs challenge 7 58
parentbit challenge 3 52
word0 challenge 4 54
bitbucket vs gitbucket 3 34
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

746 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now