dataiotech Labs
dbaguidedbaguideDBAdataxtoolsdataopsphere
Scripts Library/oracle/#66
Script #66
oracle
Backupread-onlyMin Version: 11g

Oracle FRA and Archive Log Usage Check

Shows Fast Recovery Area usage and reclaimable space. Must be monitored to prevent database hangs from a full FRA.

#fra#archivelog#recovery#rman
oracle · sql
SELECT name,
       ROUND(space_limit / 1073741824, 2)   AS limit_gb,
       ROUND(space_used / 1073741824, 2)    AS used_gb,
       ROUND(space_reclaimable / 1073741824, 2) AS reclaimable_gb,
       ROUND(100 * (space_used - space_reclaimable) / space_limit, 1) AS real_used_pct
FROM   v$recovery_file_dest;

SELECT file_type, percent_space_used, percent_space_reclaimable, number_of_files
FROM   v$recovery_area_usage
ORDER  BY percent_space_used DESC;
Operational Notes & Remediation Guidance

FRA saturation halts database operations immediately as archive logs cannot be written.

Production Safety & Execution Standards
  • This script is designed for read-only diagnostics; it does not alter schema or modify data directly.
  • Prior to executing on production systems under high load, verify the target database version (Min. Version: 11g).
  • Exercise caution with mutating actions (e.g., terminating sessions or dropping indexes) referenced in the notes section.