Database Networking (MOSC)

MOSC Banner

Linux OCI connection with Directory Naming Method (LDAP) failed with ORA-12154

edited Nov 7, 2014 5:26PM in Database Networking (MOSC) 2 commentsAnswered

Hello all,

With the OID directory naming, NAMES.DIRECTORY_PATH= (LDAP), we have two programs make the connection using OCIServerAttach().

One program (command_a) worked, but one (command_b) failed with error ORA-12154: TNS:could not resolve the connect identifier specified

However, both programs worked with local naming resolution NAMES.DIRECTORY_PATH= (TNSNAMES)

SQLNET.ORA CLIENT TRACE =

2014-10-14 15:09:39.011319 : nnflrne1:Quering the directory for dn: cn=ODRMT,cn=OracleContext

2014-10-14 15:09:39.011334 : nnflqbf:entry

2014-10-14 15:09:39.011347 : nnflqbf:Search: Attrs[0]: objectclass

2014-10-14 15:09:39.012322 : nnflqbf:Search:  Base: cn=ODRMT,cn=OracleContext; Scope: 0; filter: (objectclass=*) returns 0x0

2014-10-14 15:09:39.012350 : nnflqbf:exit

2014-10-14 15:09:39.012365 : nnflgne:entry

Tagged:

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