Hello There...
I faced one issue while I was working on the project to migrate data from Oracle to SQL Sever and I thought I should share it here.
I had created a SSIS package in VS2008 and had installed Oracle10g (32 bit) and SQL Server 2008 (32 bit). It was working fine until I changed my machine. I upgraded my laptop to 64 bit (I7) so I had to reinstall everything and there came the main problem. I couldn't run SSIS package at all after I installed Oracle 10g (64 bit) and SQL Server 2008 (64 bit)
It was tough to establish all connections successfully but I was able to do that with proper TNS entries (for Oracle) and SQL Server settings.
If you ever face issue in running SSIS package having Oracle and SQL connections, here is the checklist I would suggest:
- Make sure Oracle listener service is started (in order to start oracle listener run "lsnrctl start" without double quotes in command window) and system is listening Oracle (to do it run in command window: tnsping <ListenerName> e.g. tnsping XE or tnsping orcl). If it fails, please refer sample TNS files and correct yours.
- To check listener status of Oracle command to run in command window is "lsnrctl status" (without double quotes)
- Make sure you are getting connected to the SQL Server and Server name is correct
- You may need to update your Oracle oledb drivers which are available on Oracle site (I downloaded ODAC112030Xcopy_x64.zip)
- Open SSIS package and test your connections in connection manager. If they succeeds then great if not check above steps again.
- After you have successfull connections, make sure that property value of "AlwaysUseDefaultCodePage" is True in OLE DB Source (in data flow task). You can see this flag in Data Flow Component in Properties window
- In Visual studion, go to your Package properties (right click on Package in Solution explorer) and select False as the value for "Run64BitRuntime" Debug Options
These were the changes/checks which I did in order to run my SSIS package successfully.
FYI, version of softwares in my machine is:
Oracle: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
SQL Server: SQL Server 2008 Enterpise Edition (patch SP1 applied)
Microsoft Visual Studio 2008 Version 9.0.30729.4462 QFE
Microsoft .NET Framework Version 3.5 SP1
SQL Server Integration Services Microsoft SQL Server Integration Services Designer Version 10.0.2531.0 ((Katmai_PCU_Main).090329-1015 )
I hope this information would help someone....Happy Coding, cheers!!!