This isn’t my first adventure in connecting to Oracle from SQL Server. No, in fact, I wrote a guide on that very topic nearly 3 years ago. Unfortunately—as a technologist, but fortunately as a blogger—the times change as does the method for setting up the configuration. On the plus side, I’m much more confident in the setup and am convinced that it’s easier than ever to connect SSIS to Oracle. Without further adieu, let’s get started by downloading and installing a couple of necessary components:
Once you have all the items installed, you’ll need to add a couple of registry keys with regedit so that the SSIS connector can find the Oracle Instant Client. Create the necessary keys and string values below where they don’t exist, updating files paths to point to where you extracted the items above (again, C:\oracle\ is assumed for this tutorial):
If you prefer, simply save the following text as a file with extension .reg and run it.
64-bit OS:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE] "TNS_ADMIN"="C:\\oracle\\tnsnames.ora" "ORACLE_HOME"="C:\\oracle\\instantclient_x32_11_2" [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE] "TNS_ADMIN"="C:\\oracle\\tnsnames.ora" "ORACLE_HOME"="C:\\oracle\\instantclient_x64_11_2"
32-bit OS:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE] "TNS_ADMIN"="C:\\oracle\\tnsnames.ora" "ORACLE_HOME"="C:\\oracle\\instantclient_x32_11_2"
This setup allows you the choice of either using the names defined in TNSNAMES.ORA at the location specified in the registry above OR specifying the server inline in the format of <server.name.trb:port/service>. For example: <servername.path.to.tld:1521/ORA10DEV> (without the angle brackets). That’s really it! The process is much more streamlined than it was just a short while ago. Two installations and a couple regedit tweaks and you should be all set!
Comment Form