More on Oracle Client and the different providers for .NET
The exception that you will get when trying to open the connection is:
ORA-00162: external dbid length xx is greater than maximum (16)
more on the topic can be found here
The workarounds are:
1) putting the whole tnsnames.ora entry in the DataSource entry of your connection string or
2) use Oracle's data provider (ODP.NET)
or
3) set the TNSADMIN environment variable to point to a different directory
where you keep a modified tnsnames.ora file.
more on the troubles with the Oracle Native Provider for .NET (ODP.NET) whenever i have a chance to write again...
0 Comments:
Post a Comment
<< Home