a week ago
Hey everyone,
We're planning to migrate our data warehouse from Oracle to Databricks. We have a mix of standard tables and a good amount of legacy PL/SQL code to deal with.
What is the best way to approach this migration? specifically:
1) How do you usually handle converting PL/SQL script over to PySpark or Databricks SQL ?
2) Are there any recommended migration migration tools or accelerators that actually work well ?
3) What's the cleanest way to handle ongoing data sync / CDC from Oracle ?
Would appreciate any advice or tool recommendations. Thanks!
a week ago
Migrating an Oracle data Warehouse with heavy PL/SQL logic to Databricks is tough. Here is a practical, direct way to approach it:
1) Converting PL/SQL: Standard SQL queries migrate easily to Databricks SQL, but procedural code doesn't translate natively. Refactor procedural logic into set based Databricks SQL where possible, or move complex loops into PySpark notebooks.
2) Migration Tools: Manually auditing PL/SQL is brutal. Teams usually rely on custom Python scripts to scan Oracle system catalogs for dependencies, combined with code conversion tools or accelerators like pulse convert to speed up symtax translation.
3) Ongoing CDC: Use Delta livr tables with auto loader for incremental ingestion or pair Databrickd with dedicated CDC tools for live Oracle replication
a week ago - last edited a week ago
Hi @Office_Solution, good question.
Here's how I'd approach it, taking your three questions in turn.
Do you know roughly how many PL/SQL procedures you have, and whether your Oracle runs on RAC? That would decide which route makes sense.
In general, I will approach your request as a phased plan
Hope this helps
a week ago
For converting legacy PL/SQL, begin with Genie Migrate (agentic SQL converter). It supports the Oracle dialect and outputs either Databricks SQL or notebooks using the DataFrame API, while iteratively validating and fixing the converted code before writing it out. The approach here is to batch convert in small groups - start by testing 2 files first and verifying semantic equivalence against the actual data. Rather than keeping stored procedures and packages as monolithic scripts, you can restructure them into Lakeflow Jobs. It allows the job orchestration to replace legacy PL/SQL control flow like cursors, loops and exception blocks, while heavy procedural logic lands inside individual notebook tasks.
On the migration side, you can check - Genie Migrate for the code conversion, Lakehouse Federation (read only foreign catalog to query Oracle in place, ideal for validating parity between old and new logic before cut over) and managed CDC connector in Lakeflow Connect for data movement. Set up federation first for parity checking, establish CDC sync, cut over the converted code and then decommission the Oracle tables in waves.
For ongoing data sync and CDC, you can use Oracle integrated CDC connector in Lakeflow Connect. It runs as a managed pipeline (captures an initial snapshot and then stream inserts, updates, and deletes directly into Delta streaming tables). Keep in mind that the connector is in Beta and carries limitations. You can also use Qlik Replicate or AWS DMS to land changes into cloud storage and use Auto Loader pick it up from there.
a week ago
Migrating an Oracle data Warehouse with heavy PL/SQL logic to Databricks is tough. Here is a practical, direct way to approach it:
1) Converting PL/SQL: Standard SQL queries migrate easily to Databricks SQL, but procedural code doesn't translate natively. Refactor procedural logic into set based Databricks SQL where possible, or move complex loops into PySpark notebooks.
2) Migration Tools: Manually auditing PL/SQL is brutal. Teams usually rely on custom Python scripts to scan Oracle system catalogs for dependencies, combined with code conversion tools or accelerators like pulse convert to speed up symtax translation.
3) Ongoing CDC: Use Delta livr tables with auto loader for incremental ingestion or pair Databrickd with dedicated CDC tools for live Oracle replication