My Oracle Support Banner

Example of Connection Cache Property "ValidateConnection" (Doc ID 550666.1)

Last updated on AUGUST 30, 2023

Applies to:

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

Goal

To show the use of the connection cache property "ValidateConnection".

Solution

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
Goal
Solution
 [1] Overview
 [2] TestValidateConnection.java - source code
 [3] sess.sql - script to kill database sessions
 [4] Output from TestValidateConnection
 [5] Explanation of TestValidateConnection code and output
 [6] Output from TestValidateConnection modified to not display stack trace
References

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