JDBC Connection Fails with Java.sql.SQLException: Io Exception: Connection Refused (Doc ID 2095932.1)

Last updated on MAY 19, 2017

Applies to:

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

Symptoms

JDBC 10g or 11g connection with the following connection string :

jdbc:oracle:thin:@<host>:<port>:<SID>

fails with error:

Steps to reproduce:
1. Set CLASSPATH to point to JDBC jar file.
2. Set PATH to point to directory where Java executables reside.
3. Run JDBC connection from java program in <Document: 467804.1> How To Determine The Exact JDBC Driver Version (9.x - 11.x) For Standalone Programs.
 

Cause

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