Sync Oracle data to SQL Server on a schedule

Recipe ToolsMarketingDatabase

What it does

When a specified interval triggers, this automation runs custom SQL in Oracle to retrieve data. It batches the items into a list and inserts rows into SQL Server so both databases stay synchronized.

Who it's for

Data and analytics teams who need to sync Oracle data to SQL Server on a schedule.

How teams use this

Sync Oracle data nightly to SQL Server

Run the Oracle query every night at midnight to pull purchase order data and batch insert it into SQL Server. The schedule keeps both databases current without manual runs.

Batch load for financial reconciliation

Execute the SQL on a weekly schedule so the accounting team has fresh purchase order records in SQL Server for month-end reconciliation. Only the interval changes from daily to weekly.

Filter rows by purchase order status

Add a condition to the Oracle SQL so only purchase orders with a specific status are batched and inserted. This requires modifying the custom SQL query to include a status filter.

How it works

  1. Wait for the scheduled interval. This automation runs at the scheduled time you set, starting without manual intervention.
  2. Execute custom SQL in Oracle. Run the custom SQL query in Oracle to retrieve or process the data needed for the batch operation.
  3. Insert batch into SQL Server. Accumulate the items into a list and insert the batch of rows into the dbo.Onto_PurchaseOrder table in SQL Server.