Thursday, June 26, 2025

Monitoring long-running operations

 Monitoring long-running operations


set pages 1000 lines 1000

col start_time for a20

col opname for a20

col message for a20

SELECT SID,serial#,TO_CHAR (start_time, 'YYYY-MM-DD HH24:MI:SS') start_time,

        opname, time_remaining, elapsed_seconds, message,

        totalwork sofar, (sofar / totalwork) * 100 pct_done

   FROM gv$session_longops

  WHERE totalwork > sofar

    AND opname NOT LIKE '%aggregate%' and sid='&SID';

No comments:

Post a Comment

Oracle Database@AWS – The Silent Shift to True Multicloud (A DBA’s Perspective)

  Introduction For years, “multicloud” has been more of a strategy slide than a reality. Moving databases between cloud providers often mean...