OracleBackup & recovery
RMAN backup history with run time in hours
Run in the target database as SYSDBA, not the recovery catalog. The first report lists every RMAN job (full, incremental and archivelog) with start, end and hours taken. The second lists only incremental jobs (input type DB INCR).
Tested on 12c, 19c · verified Sep 2026
1-- Run in the database (not the catalog), logged in as SYSDBA.2CLEAR COLUMNS3SET LINESIZE 150 PAGESIZE 200 TRIMOUT ON TAB OFF4COLUMN STATUS FORMAT A95COLUMN hrs FORMAT 999.996 7-- All backups: full, incremental and archivelog8select9SESSION_KEY, INPUT_TYPE, STATUS,10to_char(START_TIME,'mm/dd/yy hh24:mi') start_time,11to_char(END_TIME,'mm/dd/yy hh24:mi') end_time,12elapsed_seconds/3600 hrs13from V$RMAN_BACKUP_JOB_DETAILS14order by session_key;15 16-- Incremental backups only (input type DB INCR)17select18SESSION_KEY, INPUT_TYPE, STATUS,19to_char(START_TIME,'mm/dd/yy hh24:mi') start_time,20to_char(END_TIME,'mm/dd/yy hh24:mi') end_time,21elapsed_seconds/3600 hrs22from V$RMAN_BACKUP_JOB_DETAILS23where input_type='DB INCR'24order by session_key;Save it as ora-rman-history.sql and run it with SQL> @ora-rman-history.
Open in denrepoRelated tool: RMAN command builder
Helps with
More Oracle scripts: Backup & recovery
- RMAN backup jobs in the last 7 daysStatus, duration and output size of each RMAN job, newest first.
- Running RMAN job progressPercent complete and time remaining for each RMAN channel that's working right now.
- Datafiles without a recent backupDatafiles with no backup of any kind in the last two days, or none at all. A new datafile added after the last full backup shows up here first.
- RMAN configuration (non-default settings)The persistent CONFIGURE settings stored in the control file, the same list SHOW ALL marks as changed. Check retention and control file autobackup…
- Fast Recovery Area usageFRA size, used and reclaimable space, then what's using it by file type. Real used % is the number that matters: at 100% the database stops archiving…
- Flashback status and restore pointsWhether flashback is on, how far back you can go, and every restore point. A forgotten guaranteed restore point will keep filling the FRA until it's…