Connection string format to connect to Oracle DB through LDAP
Hi,
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".
Code:
--------
string constr = "Data Source=@ldap://abc.pq.xyz.com:11389/myldap,cn=OracleContext,dc=pq,dc=xyz,dc=com;User Id=MyDB;Password=MyPass";
OracleConnection con = new OracleConnection(constr);
con.Open();
I need help in forming the connection string.