My Oracle Support Banner

Connection Events Are Not Raised When Logical Connection Is Closed In JDBC Driver 12c (Doc ID 2400375.1)

Last updated on NOVEMBER 16, 2021

Applies to:

JDBC - Version 12.1.0.1.0 to 12.2.0.0.0 [Release 12.1 to 12c]
Information in this document applies to any platform.

Symptoms

In Oracle JDBC Driver 12.1.0.1 or later, connectionClosed / connectionErrorOccurred events are not raised when a logical connection is closed.

This results in possible connection leak in some connection pool managers which are used in connection events implemented by javax.sql.ConnectionEventListener.

Reference:
javax.sql
Interface ConnectionEventListener

 If using Universal Connection Pool (UCP), connection leak does not occur since UCP does not use these connection events for managing connections.

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.