I want to write a SSIS Package for copying data from oracle to MS Sql server. and also the condition is, What are the data has to be moved from oracle to SQL will be known by selecting a table in SQL. Basically Table1.Column1 in SQL server has to be filled from oracle if the value is not there in that table in SQL Server. we have also have common column value in that table to map the record with sql server and oracle. so to do this i have planned to do it in SSIS Package.
Can any one explan me in detail how to create a SSIS Package for the above said scenario.
Thank you in advance for your help.
In SQL Server Data Tools (SSDT), open the Integration Services project that contains the package that you want to copy. In Solution Explorer, double-click the package. Verify either the package to copy is selected in Solution Explorer or the tab in SSIS Designer that contains the package is the active tab
Launch BIDS from the SQL Server program group; select File, Open, File from the menu and navigate to the folder where you saved the SSIS package and open it. The following is an example of the SSIS package that is generated: The Preparation tasks each create a group of tables in the Oracle database.
The Data Flow tasks copy the data from a group of SQL Server tables to the Oracle tables. You can add whatever kind on logic you need to the SSIS package that gets generated. Back on the Column Mappings dialog I clicked Drop and re-create destination table for the Album table.
On successful connection with the oracle server, it will proceed to the next screen Select Destination as SQL Server Native Client, Server Name, SQL Server Credential and Database. Click Next. From the next screen select “Copy data from one or more tables or views” and click on Next.
You should use Lookup to join the common column( same data type) of SQL server and Oracle and retrieve the values from Oracle which does not have a matching record in SQL server.
Design
1.Using SSIS 2005
2.If you are using SSIS 2008 then no need to configure the Error Output in lookup .Just drag the no match output from Lookup to SQL Server destination.
I suggest this implementation.
I have used praveen's solution, but sometimes it may not be the best. Specially as the number if records on the destination grows. Also, it doesn't deal with "updates"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With