How to Update Properties for an Aready Running Implicit Connection Cache (Doc ID 1068815.1)

Last updated on AUGUST 03, 2016

Applies to:

JDBC - Version 10.2.0.1 to 11.2.0.1 [Release 10.2 to 11.2]
Information in this document applies to any platform.

Goal

The goal here is to update the Cache Properties of an Implicit Connection Cache that is already initialized and in use.

One might try the following code, but will see that Properties are not applied:
Properties properties = new Properties();
properties.setProperty("MaxLimit", 50);
dataSource.setConnectionCacheProperties(properties);

Solution

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