My Oracle Support Banner

java.net.UnknownHostException: <HOSTNAME>: Name or service not known While Connecting to Database Using JDBC (Doc ID 2983370.1)

Last updated on NOVEMBER 01, 2023

Applies to:

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

Symptoms

JBOSS application using JDBC Thin driver fails to connect to an Oracle database with error:

 SQL*Plus connections to the same database work with no issues.

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
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.