Run this SQL to show the progress of DML operations:
SELECT SUBSTR(sql_text, 1, 60) "SQL Text",
rows_processed "Total Rows Processed",
ROUND((SYSDATE - TO_DATE(first_load_time, 'yyyy-mm-dd hh24:mi:ss')) * 24 * 60, 1) "Total Time (Min)",
TRUNC(rows_processed /((SYSDATE - TO_DATE(first_load_time, 'yyyy-mm-dd hh24:mi:ss')) * 24 * 60)) "Rows/Min",
TRUNC(rows_processed /((SYSDATE - TO_DATE(first_load_time, 'yyyy-mm-dd hh24:mi:ss')) * 24 * 60 * 60)) "Rows/Sec"
FROM SYS.v_$sqlarea
WHERE sql_text LIKE 'INSERT INTO some_table%'
AND open_versions > 0
AND rows_processed > 0;
2 comments:
Thanks for your script. It's very helpful.
Thank you very much. You saved my day.
Post a Comment