Statement.cancel() Leaks Cursor on Database

(Doc ID 1558622.1)

Last updated on AUGUST 03, 2016

Applies to:

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


A java application uses Statement.cancel() calls to interrupt long running queries and other database operations.
Each cancel request causes a cursor to leak on the database, which can eventually lead to an ORA-01000 : maximum open cursors exceeded error.


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