My Oracle Support Banner

Trying to Set Up External Password Store with JDBC Thin Fails With oracle.net.ns.NetException: could not resolve the connect identifier (Doc ID 2400231.1)

Last updated on MAY 23, 2018

Applies to:

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

Symptoms

Following the SecureExternalPassword sample in <Document:1123423.1> How To Use an External Password Store with JDBC/Thin, the sample program is modified to point to the location of his tnsnames.ora file.

After successful compilation of the program, its execution fails with:

 

java.sql.SQLException: IO Error: could not resolve the connect identifier "MKCDB_RM"

  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:489)

  at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:553)

  at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:254)

  at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)

  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:528)

  at java.sql.DriverManager.getConnection(DriverManager.java:571)

  at java.sql.DriverManager.getConnection(DriverManager.java:187)

  at sep.main(sep.java:19)

Caused by: oracle.net.ns.NetException: could not resolve the connect identifier "MKCDB_RM"

  at oracle.net.resolver.NameResolver.resolveName(NameResolver.java:181)

  at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:431)

  at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:693)

  at oracle.net.ns.NSProtocol.connect(NSProtocol.java:251)

  at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1140)

  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:340)

  ... 7 more

Changes

 

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