My Oracle Support Banner

JDBC Connection to RAC Database Fails With "Unknown host specified" (Doc ID 1060941.1)

Last updated on AUGUST 30, 2023

Applies to:

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

Symptoms


Trying to connect to an Oracle 10.2.0.4 RAC database using JDBC Thin 10.2.0.3 fails with error:

>java -classpath .;.\ojdbc14.jar ConnectTest <user> <pwd> jdbc:oracle:thin:@(DESCRIPTION = (LOAD_BALANCE = on)
(ADDRESS = (PROTOCOL = TCP)(HOST = <vip1>)(PORT = <VIPPORT1>))
(ADDRESS = (PROTOCOL = TCP)(HOST = <vip2>)(PORT = <VIPPORT2>))
(ADDRESS = (PROTOCOL = TCP)(HOST = <vip3>)(PORT = <VIPPORT3>))
(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = <service name>)))

Connecting to the database...Connecting...

Exception in thread "main" java.sql.SQLException: Io exception: Unknown host specified




Connection from sqlplus works successfully.

Changes

 

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


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