My Oracle Support Banner

How To Recover From Dead Connections With Oracle JDBC Driver - Implicit Connection Cache (Doc ID 791124.1)

Last updated on SEPTEMBER 04, 2018

Applies to:

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


This document describes how to use a TopLink exception handler to detect dead connections and how to reestablish the connections.

TopLink <= 10.1.3.x does not have a built-in feature that allows to recover from dead connections transparently.

TopLink >= 11g transparently reestablishes connections in case a dead connection was detected.

This solution does not work in the following scenarios:

  • Read and write operations running within a transaction
    (Typically only write operations are affected. The transaction of a dead connection will be rolled back, therefore no transparent recovery is possible.)
  • Queries that use scrollable cursors.
    (TopLink does not allow hook custom code into the cursor navigation, therefore it is not possible to recover from dead connections being detected on cursor navigation.)
This solution can be used with Real Application Cluster (RAC) and Fast Connection Failover (FCF).
Anyway this solution does not require RAC, it will work with a single instance as well.



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

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