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

ORA-01000 maximum open cursors exceeded

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
chocobogo
Asked:
chocobogo
  • 2
  • 2
2 Solutions
 
CEHJCommented:
>>e.g. not closing statements ??

YES - first place to start looking
0
 
lmpsteelwireIT / Business AnalystCommented:
use the .close on your recordsets...that should fix it
0
 
chocobogoAuthor Commented:
Cheers, I expected as much...

Where else should I look if I still get this error after closing all the statements & resultSets ?
0
 
lmpsteelwireIT / Business AnalystCommented:
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
 
CEHJCommented:
>>use the .close on your recordsets...that should fix it

Closing Statements automatically closes ResultSets. Check connections as well
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

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