Sync Oracle batch data to SQL Server on schedule

Recipe ToolsMarketingDatabase

What it does

When a scheduled interval arrives, this automation runs a custom SQL query in Oracle to fetch rows. It accumulates those rows and inserts them in batch into SQL Server so data stays synchronized across systems.

Who it's for

Data and analytics teams who need to move Oracle data to SQL Server on a regular cadence without manual intervention.

How teams use this

Sync purchase orders nightly

Run the batch sync every night at midnight so SQL Server always has the latest purchase order data from Oracle. The team starts each day with current information.

Move data to a reporting database

Point the SQL Server insert step to a different reporting database so analysts query fresh data without impacting the production system. Only the target table changes.

Filter rows by update timestamp

Add a condition to the Oracle SQL query to only fetch rows updated in the last 24 hours. This reduces the batch size and focuses the sync on recent changes.

How it works

  1. Start on a scheduled interval. The automation runs at the specified time or frequency so batch processing happens on a predictable schedule.
  2. Fetch rows from Oracle. Run a custom SQL query in Oracle to retrieve the rows that need to be synced to SQL Server based on your criteria.
  3. Insert batch into SQL Server. Accumulate the Oracle rows into a list and insert them in batch into the dbo.Onto_PurchaseOrder table in SQL Server.