How to Test JDBC Connect String from SQL*Plus to Diagnose Connection Errors

(Doc ID 1126784.1)

Last updated on DECEMBER 01, 2017

Applies to:

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


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.


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