I have a server with both 10g and 11g clients installed. How do I setup the connection string to tell my ASP.NET application to use the second client which is 11g (i.e. OraClient11g_home2)?
+1
A:
From documentation:
In
ODP.NET 10.2.0.2.20and higher,ODP.NETcan run more than one activeOracle Homeconcurrently without requiring any special setup by the administrator.When
ODP.NETis installed, theDLL search path will be based on the following order:
- directory of the application/executable
- directory specified by
HKEY_LOCAL_MACHINE\Software\Oracle\ODP.NET\<version>\DllPath- directories specified by the
PATHenvironment variableUpon an
ODP.NETinstallation, theDllPathregistry value of typeREG_SZwill be set to the%ORACLE_HOME%\bindirectory where the corresponding dependentDLLs are installed.
Make sure you are using ODP.NET as a provider and set your ORACLE_HOME environment variable.
Quassnoi
2009-06-25 17:16:07
A:
I fid Oracle Locator Express to be a useful tool. This will let you change your ORACLE_HOME on the fly: Oracle Locator Express
Robert Durgin
2009-06-25 20:39:12