How To Recover From Dead Connections With Oracle JDBC Driver - Implicit Connection Cache
Last updated on MARCH 08, 2017
Applies to:Oracle TopLink - Version 10.1.3.1 and later
Information in this document applies to any platform.
***Checked for relevance on 13-Aug-2014***
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.)
Anyway this solution does not require RAC, it will work with a single instance as well.
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