How to transfer data from a SQL Server Database to a Oracle Database

gizgok picture gizgok · Feb 24, 2011 · Viewed 8.9k times · Source

The current application I'm working lets call X is an archiving application for the data kept another application say Y. Both are very old applications developed about 8 odd years back. So far in my reading of the documentation, I have learnt that the process to transfer data used is that, the SQL Server Database Tables snapshot is created in flat files and then this flat files are ftp'd to the correct unix box where through ctl various insert statements are generated for the Oracle Database and that's how this data is transferred. It uses bcp utility. I wanted to know if there is a better and a faster way this could be accomplished. There should be a way to transfer data directly, I feel the whole process of taking it in files and then transfer and insert must be really slow and painstaking. Any insights???

Answer

Sathyajith Bhat picture Sathyajith Bhat · Feb 24, 2011

Create a DB Link from your Oracle Database to SQL Server database, and you can transfer the data via selects / inserts.

Schedule the process using DBMS_SCHEDULER if this needs to be done on a periodic basis.