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

Emerging Oracle OCI Database Technologies (2025–2026): The Future of Data + AI

  Introduction Oracle Cloud Infrastructure (OCI) has moved far beyond being just another cloud hosting platform for Oracle Databases. In 202...