Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JDBC and the fly likes Cursor  is incrementing for a connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Cursor  is incrementing for a connection" Watch "Cursor  is incrementing for a connection" New topic

Cursor is incrementing for a connection

Madhavi Singh

Joined: Mar 11, 2008
Posts: 1
Java method is invoking a Stored Procedure. in the finally block, the corresponding Resultset and Statement is closed. Connection is not closed, as it is reused.
The method has been checked for the same many times, however from Database side query, it is evident that the cursor number is increasing for the connection.
What is the reason of increasing the cursor count in spite of closing Resultset and Statement. What will be the solution?

p.s. there are no exceptions occurred for closing the both in finally.
subject: Cursor is incrementing for a connection
Similar Threads
Resultset not Open?
JDBC Connections Freezing with Multiple Users Accessing DB
Connection, Resultset and statement
Open Cursor Exceeded in Oracle
Connection pool - running out of connections