My Oracle Support Banner

Sqlcl Hangs When Trying to Connect to the Database (Doc ID 3026164.1)

Last updated on MAY 30, 2024

Applies to:

Oracle SQLcl - Version 24.1.2 and later
Information in this document applies to any platform.

Symptoms

New installation of SQLcl 24.1 and JDK 11.0.22

Sqlcl.exe does not respond after issuing the logon command. 

No errors are thrown and SQLcl appears to be hung. Adding verbose shows the following error:

WARNING oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli$7 run Unable to check for updates. Please verify your network connection:
java.net.UnknownHostException: No such host is known (dbtools.oraclecorp.com)

The database alert log shows the following errors:

TNS-12545: Connect failed because target host or object does not exist
ns secondary err code: 12560
nt main err code: 515

TNS-00515: Connect failed because target host or object does not exist
nt secondary err code: 1001
nt OS err code: 0

The connection works without error from SqlPlus.

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


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