• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 484
  • 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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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