Database Networking (MOSC)

MOSC Banner

Oracle instant client is unable to connect to database

Hello,

I could not able to connect server on IP 192.168.38.166, using instant client with SQLPLUS

sqlplus ops$ocshis@localhost/password1@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=192.168.38.166)(Port=1521))(CONNECT_DATA=(SID=ADVA)))

I got following result on cmd

SQL*Plus: Release 19.0.0.0.0 - Production on Tue Aug 30 14:37:52 2022

Version 19.16.0.0.0

Copyright (c) 1982, 2022, Oracle. All rights reserved.

Enter password:

ERROR:

ORA-12154: TNS:could not resolve the connect identifier specified


Did I missed something? what are necessary settings required for instant client to connect to remote database.

I have done following checks

Ping IP 192.168.38.166 : Success

Can access shared folders from IP 192.168.38.166

I have set following environment variable in CMD

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center