Link to home
Start Free TrialLog in
Avatar of isames
isames

asked on

Migrating SQL DB to Oracle DB

We are migrating from a SQL 2008 DB to a Oracle DB.

I have some complex SQL queries that run perfectly in SQL 2008, 2012 etc., but throw an error in Oracle.

Is there a tool that can convert the TSQL language from SQL to Oracle?
Avatar of Sean Stuber
Sean Stuber

Oracle has the SQL Translation Framework which also integrates with Oracle's SQL Developer tool.

https://blogs.oracle.com/imc/sql-translation-framework-in-oracle-database-12c
Interesting, I've only been involved in the migration the other way Oracle to MS.....cost driven decisions.
What was the thought process of shifting the other way? Just curious.

Tony
I haven't ever used the tool that sdstuber mentioned, but most conversion tools aren't able to convert or translate 100% of the code from one system to another.  Usually at least some manual conversion and/or re-writing is required especially if the code in the source systems uses some features that are unique to that system.

Also keep in mind the fact that record locking and data concurrency is handled very differently by Oracle than by SQL Server, so code optimized for one of these systems may not be required in the other, or may need to be quite different in the other.  A related difference is whether temporary tables are required, or not.  In SQL Server these are often required and are created dynamically in stored procedures.  In Oracle, these are usually not required and are certainly not created dynamically by stored procedures.  In Oracle these are created just once, usually via *.sql scripts executed manually by a DBA or developer, then are referenced by stored procedures when needed.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.