NOTE: this solution is just for an specific case, the case when you need only ODBC 32-bit working on the 64-bit system. Other apps that rely on 32-bit DLLs may not work because will not find it.
The idea is to add instaclient 32 bit to the server manually, so nothing will interfere in the main system. We will need basic instaclient + ODBC instaclient
Follow these steps:
- Download from https://www.oracle.com/database/technologies/instant-client/downloads.html the 32-bit instaclient and the 32-bit ODBC (
instantclient-basic-win32-11.1.0.7.0.zip
and instantclient-odbc-win32-11.1.0.7.0.zip
)
- It is installed simply by unzipping in a folder, for example,
C:\instaclient_11_2
- The instaclient ODBC must be also unzipped in that folder and then, you need to execute
odbc_install.exe
. After it, you have Oracle ODBC 32 bit available in the system.
- Instructions says to Add the folder
C:\instaclient_11_2
to the system PATH, but it is not necessary just for ODBC to work. In fact, in order to leave system as untouched as possible, don't do it.
- Add, so that the Oracle ODBC 32 bit driver recognizes your tnsnames.ora file, the environment variable
TNS_ADMIN
with the value C:\instaclient_11_2
and copy in that folder the original tnsnames.ora
from your Oracle home network\admin
folder.
At this point, you have the 32 bit ODBC driver available and with Oracle tnsnames.ora configured.
- Go to the C:\Windows\SysWOW64 folder and run odbcad32.exe there to create Oracle's native 32-bit ODBC driver for your app and test the connection. That's all.
NOTE: if when creating the ODBC driver at this step, appears this error:
"The Setup routines for the Oracle in instantclient_11_2 ODBC driver could not be loaded due to system error code 14001: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail. (.. \ SQORAS32.DLL)."
Then the VC++ 2005 redistributable is missing. Go to https://www.microsoft.com/en-US/download/details.aspx?id=14431, download the 32-bit version and install. Then it should work.
No system restarts are needed, no current Oracle install is affected. All should work as fine as before but with Oracle ODBC 32 bit available and working.