denrepo

OracleBackup & recovery

Running RMAN job progress

Percent complete and time remaining for each RMAN channel that's working right now.

Not yet verified. How scripts are tested

ora-rman-progress.sql
1CLEAR COLUMNS2SET LINESIZE 140 PAGESIZE 100 TRIMOUT ON TAB OFF3COLUMN sid_serial HEADING "SID,SERIAL#" FORMAT A144COLUMN opname     HEADING "OPERATION"   FORMAT A35 TRUNCATE5COLUMN pct_done   HEADING "DONE %"      FORMAT 990.96COLUMN elapsed_m  HEADING "ELAPSED MIN" FORMAT 99,9907COLUMN remain_m   HEADING "REMAIN MIN"  FORMAT 99,9908 9SELECT sid || ',' || serial# AS sid_serial,10       opname,11       ROUND(100 * sofar / NULLIF(totalwork, 0), 1) AS pct_done,12       ROUND(elapsed_seconds / 60) AS elapsed_m,13       ROUND(time_remaining / 60) AS remain_m14FROM v$session_longops15WHERE opname LIKE 'RMAN%'16  AND opname NOT LIKE '%aggregate%'17  AND sofar < totalwork18ORDER BY start_time;

Save it as ora-rman-progress.sql and run it with SQL> @ora-rman-progress.

Open in denrepoRelated tool: RMAN command builder

More Oracle scripts: Backup & recovery