How to Test JDBC Connect String from SQL*Plus to Diagnose Connection Errors (Doc ID 1126784.1)

Last updated on JULY 05, 2016

Applies to:

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

Goal

When trying to connect to the database using JDBC/thin the following error may occur.

IOException: The network adapter could not establish the connection


This is how to test whether or not SQL*Plus has the same issue using the exact same connect string. Then you can confirm if indeed this is purely a JDBC issue or not.

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