Cursor Leak Leading to ORA-1000 With JDBC Thin Driver

(Doc ID 2188724.1)

Last updated on FEBRUARY 14, 2018

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


On : version, Thin JDBC driver

Cursor leak with JDBC thin driver .
Using a simple procedure with the new implicit cursors call, a cursor leak is seen with the JDBC Thin driver. This leads to ORA-1000 after some hundred calls to the procedure.
If connected with JDBC OCI, the number of open cursors does not increase.

Below the test case:


ORA-01000: Maximum open cursors exceeded

The issue can be reproduced at will with the following steps:
1. Create the following procedure:
create or replace PROCEDURE test1
  v_cursor sys_refcursor;
  OPEN v_cursor FOR
  select 1 from DUAL;
2. Invoke it a hundred times from JDBC thin program.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms