Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Problem no close cursor jdbc cursor. error ora-1000

victor valdesFeb 14 2025 — edited Feb 14 2025

Hello, I need help with a problem with the number of open cursors. I have a Java application that connects through a connection pool on Jboss 7 using JDBC and a 19C DB. To solve the problem temporarily and avoid the ORA-1000 error, the Jboss server is restarted every so often, but then the cursors go back up. In my Java code I use stored procedures with implicit cursors that return a REF CURSOR type cursor that remains open so that Java can read the result, therefore I cannot close the cursor in the stored procedure. I have already performed different tests such as updating the JDBC lib. Closing in the finally block of the connection, resulset, callablestament. But nothing has worked. My suspicion is the Jboss DataSource which I think may be generating the problem.

Comments

Processing

Post Details

Added on Feb 14 2025
0 comments
57 views