Systems Engineering and RDBMS

Copying Data from SQL Server to Oracle

Posted by decipherinfosys on September 1, 2008

One of our clients recently had a need to quickly and efficiently copy over the data from a SQL Server database to an Oracle schema. This client is using Oracle’s solution for doing data warehousing and data mining and as a result needed data uploads from other systems one of which was on a SQL Server system. Such kind of requirements are very common nowadays. Either moving data from SQL Server to Oracle or vice-versa.

The idea was to be able to load the data quickly into an Oracle schema which has the exact same schema structure like that of SQL Server and then once the data load is done, one can run the proper transformations and then load into the staging schema. So, essentially, they were interested in having an ODS (Operational Data Store) i.e. have a schema with an exact copy of the source data (or a sub-set of the data in this case since not all the data and not all the objects were needed). The data from the ODS is then processed into another schema through transformations and then cubes are built for reporting and enhanced analytics.

The company had tried using several methods including:

a) SSIS: Direct data copy using the OLEDB providers of the respective RDBMS. But the data copy performance was very poor in this case even after tweaking several settings.

b) DataDirect: This worked out great for them but they ran into issues related to UNICODE data sets.

c) The final step that they tried was what we have listed in one of our whitepapers over here. Look at: “Copying data from SQL Server database to an Oracle Schema”. They deployed a similar scripting framework which provided them the maximum flexibility and then used SSIS as a workflow tool in order to get the data from SQL Server into Oracle in the least amount of time.

In the long run, they intend to go to the Data Direct product once their open issue pertaining to the UNICODE data sets gets resolved. In order to see how to load up UNICODE data into Oracle, here is one of our previous posts that talks about how to load up chinese data in Oracle.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: