• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cursor is incrementing for a connection

 
Madhavi Singh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic