Monitor the flash recovery area usage

Oracle Database Administration
Post Reply
User avatar
jimb
Site Admin
Posts: 6146
Joined: Thu Jan 19, 2012 1:10 pm
Location: New Delhi, India
Contact:

Monitor the flash recovery area usage

Post by jimb »

There are two dictionary views to monitor the flash recovery area usage.
1.) V$RECOVER_FILE_DEST can be used to find out the physical location, allocated space, space reclaimable, number of files present in the directory.

set lines 200
col SPACE_LIMIT for 9,999,999,999,999
col NAME for a10
SELECT NAME,
SPACE_LIMIT/1024/1024 AS "MB SPACE_LIMIT",
SPACE_USED /1024/1024 AS "MB SPACE_USED",
NUMBER_OF_FILES
FROM V$RECOVERY_FILE_DEST;

Code: Select all

NAME       MB SPACE_LIMIT MB SPACE_USED NUMBER_OF_FILES
---------- -------------- ------------- ---------------
+VOL1                2048           153               3
2.) V$flash_recovery_area_usage can be used to find out percentage of the total disk quota used by different types of files, and how much space for each type of file can be reclaimed by deleting files that are obsolete, redundant, or already backed up to tape.

set pages 100
set lines 120
SELECT * FROM V$FLASH_RECOVERY_AREA_USAGE;


Sample Output:

Code: Select all

FILE_TYPE    PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
------------ ------------------ ------------------------- ---------------
CONTROLFILE                   0                         0               0
ONLINELOG                  7.47                         0               3
ARCHIVELOG                    0                         0               0
BACKUPPIECE                   0                         0               0
IMAGECOPY                     0                         0               0
FLASHBACKLOG                  0                         0               0
Oracle Database Administration Forums
http://www.oracle-forums.com/
xaeresis
Posts: 196117
Joined: Wed Oct 04, 2023 2:39 pm

Re: Monitor the flash recovery area usage

Post by xaeresis »

Post Reply