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

Sign up to vote on this title
UsefulNot useful