Sync Oracle batch data to Mssql on schedule
Recipe ToolsMarketingDatabase
What it does
When a scheduled interval arrives, this automation runs custom SQL in Oracle to fetch rows. It filters for records with a purchase order header ID, accumulates them into a list, enriches with shipment type data, and writes results to Mssql.
Who it's for
Data and analytics teams who need to batch process Oracle data on a recurring schedule without manual intervention.
How teams use this
Process daily Oracle updates to Mssql
Run the batch every night to sync new and updated Oracle rows into Mssql. The team wakes up to fresh data without manual data transfer work.
Route failed batches to monitoring
When an error occurs during shipment type lookup, send an alert to a monitoring tool so the team can investigate. Only valid batches write to Mssql.
Filter by additional purchase order criteria
Add a condition to check po_header_id and a second field like order status before accumulating rows. This narrows the batch to only high-priority orders.
Adjust batch frequency for peak periods
Change the scheduled interval from daily to every four hours during month-end close. The batch runs more often when data volume is highest.
How it works
- Start on a scheduled interval. The automation runs at a specified time or frequency so batch processing happens without someone starting it manually.
- Run custom SQL to fetch rows. Execute a custom SQL query in Oracle to retrieve new or updated rows from the table so the batch has fresh data to process.
- Filter rows by purchase order header. Loop through each row and check if po_header_id is present. Accumulate matching rows into a list so only valid records move forward.
- Enrich with shipment type lookup. Call a shipment type lookup for each accumulated row and monitor for errors so enriched data is ready for the database.
- Write batch results to Mssql. Store the processed rows with shipment type data in Mssql so the batch output is available for downstream reporting and analysis.