0% found this document useful (0 votes)
26 views

Operations Monitor Long Running

This document provides two SQL queries to monitor long running operations and RMAN backup status using the V$SESSION_LONGOPS view in Oracle. The first query returns details of long running operations including SID, serial number, operation name, work completed so far, total work, and percentage complete. The second query filters for RMAN backup operations, excluding aggregate operations, and returns the same details.

Uploaded by

dbareddy
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Operations Monitor Long Running

This document provides two SQL queries to monitor long running operations and RMAN backup status using the V$SESSION_LONGOPS view in Oracle. The first query returns details of long running operations including SID, serial number, operation name, work completed so far, total work, and percentage complete. The second query filters for RMAN backup operations, excluding aggregate operations, and returns the same details.

Uploaded by

dbareddy
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

operations Monitor long running using v$session_longops

SELECT SID, SERIAL#, opname, SOFAR, TOTALWORK, ROUND(SOFAR/TOTALWORK*100,2) COMPLETE FROM V$SESSION_LONGOPS WHERE TOTALWORK != 0 AND SOFAR != TOTALWORK order by 1; Note: the same query can be used to monitor RMAN backup status SELECT SID, SERIAL#, CONTEXT, SOFAR, TOTALWORK, ROUND(SOFAR/TOTALWORK*100,2) "%_COMPLETE" FROM V$SESSION_LONGOPS WHERE OPNAME LIKE 'RMAN%' AND OPNAME NOT LIKE '%aggregate%' AND TOTALWORK != 0 AND SOFAR != TOTALWORK ; SID SERIAL# OPNAME SOFAR TOTALWORK ---------- ---------- -------------------- ---------- ---604 13371 Table Scan 6311 24498 685 1586 Table Scan 6333 24498

COMPLETE 25.76 25.85

You might also like