Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exception when using tnsnames AND ezconnect resolution methods with Oracle managed ODP 12c rel.3

2700309Oct 6 2015 — edited Oct 9 2015

We are looking into upgrading a web service connecting to Oracle using the unmanaged ODP to the managed ODP (12c release 3).

We are using tnsnames, and have the following configuration in the sqlnet.ora file: NAMES.DIRECTORY_PATH= (TNSNAMES, EZConnect).

The EZConnect resolver is needed because we are using a OracleDependency object for database update notifications.

When moving to the managed driver,a SocketException is thrown when trying to open a new connection. By looking at the call stack, I can see that the Oracle managed driver, actually a "OracleInternal.Network.EZConnect" object, is calling System.Net.Dns.GetAddrInfo to get an IP address, but with the tns alias as parameter ! This of course fails, with this "No such host is known" exception.

So it looks to me like there is an issue combining tnsnames and ezconnect with the managed ODP driver !

Anybody else that has experienced this, and found a solution, or could this be an error in the driver ?

This post has been answered by 2700309 on Oct 9 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 6 2015
Added on Oct 6 2015
1 comment
608 views