My Oracle Support Banner

JDBC Fails with Invalid connection string format When TNS Alias Contains Dots (Doc ID 1915177.1)

Last updated on FEBRUARY 03, 2019

Applies to:

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

Symptoms

JDBC/thin version 11.2.0.4 using the "oracle.net.tns_admin" property to access a tns entry that contains dots fails to connect with error:
java.sql.SQLRecoverableException: IO Error: Invalid connection string format, a valid format is: "host:port:sid"

For example:

 


 

Changes

 The issue does not reproduce with JDBC 11.2.0.3 and lower versions.

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
Changes
Cause
Solution
References


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.