Range check error with mutiple Oracle clients.
Posted: Thu 14 Jan 2010 08:56
With 2 Oracle Clients installed (10.2.0.1 and 11.1.0) and 10.2 as the default ODAC is producing a "Range Check error" from within the VersionStrToWord function after the incorrect version is returned from GetOCIClientVersion.
Reproducing this may take some experimenting with default Oracle client and changing the selected client in the Oracle Universal Installer.
The error stops ODAC from initializing the oci and obviously connecting.
We were able to fix this by declaring the _OCIClientVersion method (in OraCall) as a function with a sword return value.
The value returned from OCIClientVersion() can then be checked so GetOCIClientVersion() doesn't return an invalid value.
Let me know if you need more information, or have a better\different solution.
Thanks,
Steve.
Reproducing this may take some experimenting with default Oracle client and changing the selected client in the Oracle Universal Installer.
The error stops ODAC from initializing the oci and obviously connecting.
We were able to fix this by declaring the _OCIClientVersion method (in OraCall) as a function with a sword return value.
The value returned from OCIClientVersion() can then be checked so GetOCIClientVersion() doesn't return an invalid value.
Let me know if you need more information, or have a better\different solution.
Thanks,
Steve.