Flash Recovery Area (FRA)
Sometimes the Flash Recovery Area (FRA) is full and the Oracle DBA wants to know what is it use, size and the list of occupants (archives, RMAN backups pieces or image copies, flashback logs).
The flash recovery area is the most powerful tool available from Oracle 10g, that plays a vital role in performing database backup & recovery operations. From Oracle 11g release2, flash recovery area is called as fast recovery area.
-- Utilisation (MB) du (Size)
select name, floor(space_limit / 1024 / 1024) "Size MB", ceil(space_used / 1024 / 1024) "Used MB"from v$recovery_file_dest;-- FRA OccupantsSELECT * FROM V$FLASH_RECOVERY_AREA_USAGE;-- Location and size of the FRAshow parameter db_recovery_file_dest-- Size, used, Reclaimable SELECT ROUND((A.SPACE_LIMIT / 1024 / 1024 / 1024), 2) AS FLASH_IN_GB, ROUND((A.SPACE_USED / 1024 / 1024 / 1024), 2) AS FLASH_USED_IN_GB, ROUND((A.SPACE_RECLAIMABLE / 1024 / 1024 / 1024), 2) AS FLASH_RECLAIMABLE_GB, SUM(B.PERCENT_SPACE_USED) AS PERCENT_OF_SPACE_USEDFROM V$RECOVERY_FILE_DEST A, V$FLASH_RECOVERY_AREA_USAGE BGROUP BY SPACE_LIMIT, SPACE_USED , SPACE_RECLAIMABLE ;-- After that you can resize the FRA with:-- ALTER SYSTEM SET db_recovery_file_dest_size=xxG;-- Or change the FRA to a new location ;-- ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='/u....';
No comments:
Post a Comment