Home > Ask the Oracle Database / Applications Experts > Questions & Answers > Errors executing Oracle recursive query
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Errors executing Oracle recursive query

Azim Fahmi EXPERT RESPONSE FROM: Azim Fahmi

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site
>
QUESTION POSED ON: 16 March 2004
I'm frequently getting ORA-00604 combined with ORA-01000 (max cursor opens). However, when I checked the code, all the result set and statement objects are closed in the final block (I am using JDBC). The query I am executing is an Oracle recursive query (start with and connect by). Can you tell me what could be wrong and under what circumstances the above error occurs?

>
It could be that the open_cursors parameter is set to a very low number in init.ora file. The default for this is very low (50). It should be set to 200 or higher.

It could be that even if you are closing the result set you are not closing the SQL statements in your JAVA code.

3. Please ensure that your Enable Connection Pooling if set to yes (for performance reason), is set to no.

Please have your DBA monitor the database and ask to see entries using V$OPEN_CURSORS and V$SYSSTAT data dictionary views.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Oracle White Papers: Fusion Middleware
HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts