ORASOLU TOOLBOX · BACKUP & RECOVERY

Backup Space

Practical Oracle SQL for reviewing recovery area capacity, backup storage usage, archived redo volume and backup space trends.

ORASOLU TOOLBOX · BACKUP & RECOVERY

Measure backup space before it becomes a recovery problem

Backup investigations should show how much recovery area is configured, which file types consume space, how large RMAN backups are and how archived redo contributes to storage growth. These queries provide a practical starting point for reviewing backup space.

01 · RECOVERY AREA

Review recovery area capacity

Review configured recovery area space, current usage, reclaimable space and the number of files stored in the destination.

SELECT
    name,
    space_limit / 1024 / 1024 / 1024 AS limit_gb,
    space_used / 1024 / 1024 / 1024 AS used_gb,
    space_reclaimable / 1024 / 1024 / 1024 AS reclaimable_gb,
    number_of_files
FROM v$recovery_file_dest;

02 · SPACE BY TYPE

Find recovery area space consumers

Break down recovery area usage by file type to identify where the available space is being consumed.

SELECT
    file_type,
    percent_space_used,
    percent_space_reclaimable,
    number_of_files
FROM v$recovery_area_usage
ORDER BY percent_space_used DESC;

03 · BACKUP PIECES

Review RMAN backup piece space

Review RMAN backup piece sizes and completion times to identify large backup files and recent storage consumption.

SELECT
    completion_time,
    handle,
    bytes / 1024 / 1024 / 1024 AS size_gb,
    status
FROM v$backup_piece
WHERE deleted = 'NO'
ORDER BY completion_time DESC;

04 · BACKUP SETS

Measure backup set size

Review backup set sizes by completion time to understand how much storage individual RMAN backup sets require.

SELECT
    completion_time,
    backup_type,
    incremental_level,
    backup_size / 1024 / 1024 / 1024 AS size_gb
FROM v$backup_set
ORDER BY completion_time DESC;

05 · ARCHIVED REDO

Measure archived redo volume

Summarize archived redo volume by day to identify periods of high redo generation that can increase backup storage requirements.

SELECT
    TRUNC(completion_time) AS archive_day,
    ROUND(
        SUM(blocks * block_size) / 1024 / 1024 / 1024,
        2
    ) AS archived_redo_gb
FROM v$archived_log
WHERE completion_time IS NOT NULL
GROUP BY TRUNC(completion_time)
ORDER BY archive_day DESC;

06 · DAILY BACKUP GROWTH

Track recent backup growth

Summarize recent RMAN backup piece volume by day to identify changes in backup storage requirements.

SELECT
    TRUNC(completion_time) AS backup_day,
    ROUND(
        SUM(bytes) / 1024 / 1024 / 1024,
        2
    ) AS backup_gb
FROM v$backup_piece
WHERE deleted = 'NO'
  AND status = 'A'
  AND completion_time >= SYSDATE - 30
GROUP BY TRUNC(completion_time)
ORDER BY backup_day DESC;

ORASOLU TOOLBOX · BACKUP & RECOVERY

Backup space should be measured as a storage lifecycle.

Recovery area capacity, RMAN backup pieces, backup sets and archived redo all contribute to the storage picture. Reviewing them together helps identify growth patterns before space pressure affects backup or recovery operations.

These queries use Oracle dynamic performance views includingV$RECOVERY_FILE_DEST,V$RECOVERY_AREA_USAGE,V$BACKUP_PIECE,V$BACKUP_SET andV$ARCHIVED_LOG.