Step 3: Live Monitoring via DB2 CLI
Step 2 includes live monitoring using the DB2 CLI.
If you wish to monitor progress, open a separate terminal window to inspect execution progress and individual phase runtimes in real time:
Watch Live Log
Progress
db2 "SELECT log_time, message, duration_seconds FROM
dbo.procedure_log WITH UR ORDER BY log_time ASC"Monitor Active Staging Batches
Left
db2 "SELECT COUNT(*) AS total_batches_remaining FROM
dbo.batch_delete_staging WITH UR"