user8786648 wrote:That's not how you use LDAP for Oracle name resolution.
I have an Oracle database and its details are configured in LDAP. I have C# code from which I want to connect to Oracle DB using LDAP details. So i have written code to connect to the Oracle DB, but not able to connect. Getting error at con.Open() statement : "ORA-12154: TNS:could not resolve the connect identifier specified".
string constr = "Data Source=@ldap://xyz.us.oracle.com:11389/xyz_ldap,cn=OracleContext,dc=us,dc=oracle,dc=com;User Id=xyz;Password=xyz";
OracleConnection con = new OracleConnection(constr);
I need help in forming the connection string.