Search code examples
.netoracleoid

Oracle's OID Service, Oracle.DataAccess and connection strings


I am looking to understand how to implement an OID connection string in .Net using the Oracle.DataAccess.dll .

The OID connection string is in this format: ldap://servname:389/instance,cn=OracleContext

When I use this as my datasource, I receive this error: ..is an invalid connection string attribute

What is the format to connect to Oracle's OID?

Thank you, Scott


Solution

  • After being diverted for almost two years, I came back to this issue and sort of have a solution.

    First, Oracle notes that ldap support is not supported in the managed library for oracle. Boo. http://www.oracle.com/technetwork/database/windows/downloads/odpmbetainstall-1696475.html

    Second, using this thread: How do I query LDAP from C# to resolve Oracle TNS hostname while using managed ODP.NET?

    I was able to rig up an ldap lookup for the tns connection string, and ultimately pass that on to nhibernate.

    I hope the Oracle eventually supports ldap.