|
Oracle 9i Client and System.Data.OracleClient
If you haven't yet upgraded to a newer Oracle client (e.g. 9.2) or you are having problems with your current Oracle client (9i or higher) then you will need to take a few steps to make your client work as you might expect. There are two main considerations:
TNSNAMES.ORA must be local
Permissions must be reset on your client directory
tnsnames.ora
Typically, companies will centralize the tnsnames.ora files (used for resolving Oracle service names) but putting it on a fileserver and pointing to it in the registry. This works just fine for Oracle's toolset and many other client programs with the exception of the System.Data.OracleClient ADO.Net provider. The provider, for some reason, expects this file to be installed locally (example: c:\oracle\ora92...\tnsnames.ora). Installing (and perhaps mirroring from a network share) locally will take care of the first requirement.
Permissions
For some reason, the permissions for the "Authenticated Users" user is not fully propagated throughout the Oracle client install. The fix for this is straightforward as well:
Open Explorer to your client install directory (c:\oracle\ora92)
Right-click ora92 and select propertied
Select the "Security" tab
Select the "Authenticated Users" entry
Uncheck the "Read and Execute" attribute
Click Apply
Re-check the "Read and Execute" attribute
Click Ok
Reset IIS |
|