How to Convert SQL server to Oracle? How to Convert SQL server to Oracle? oracle oracle

How to Convert SQL server to Oracle?


Transferring the data will be easy; SQL Server integration services can do that, or Oracle's SQL Developer.

However, views and stored procedures are different between Oracle and SQL Server. SQL Server uses T-SQL, Oracle uses PL/SQL. These are not very compatible and I don't know a tool can automatically convert between the two. If your database relies on specific T-SQL features, you will need a developer to do the conversion.


Get the jTDS jdbc driver from sourceforge.

Add it to Oracle SQL Developer.

Tools > Migration > Migrate

enter image description here

Create a migration repository in your new Oracle database.

Create a new migration project.

Point it to your SQL Server database.

Convert it - mind the data types.

Migrate the data:

  1. online row-by-row inserts over JDBC. Fine for SMALL/test boxes.
  2. offline - use micrsosoft's unload utility to pull the sql server down to flat files. SQL Developer will create SQL*Loader scripts to put them over into Oracle.
  3. If you have GoldenGate licensed, use that to move the data over and to synch changes from one system to the other in case you need to keep both up and going.

Start looking at the migrated T-SQL procs and functions. SQL Developer will leave comments for code blocks it wasn't able to translate...but you will need to TEST and VERIFY every single translation. Customers can see upwards to 80-90% translation rates for their T-SQL, but it could be as low as 50%...it just depends on the nature of your code.

The entire process is described here.

I wrote a white paper, with Sybase ASE as the example source platform, here. The process is identical for SQL Server. It has step-by-step guidance with screenshots.

If you have an Oracle account manager, reach out for help. We have specialists that deal exclusively with migrations such as yours. They have lots of practical advice and can recommend 3rd party partners if you lack the expertise.