本文主要是介绍监控flash_recovery_area的使用情况(V$FLASH_RECOVERY_AREA_USAGE,V$RECOVERY_FILE_DEST),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
--监控flash_recovery_area的使用情况(V$FLASH_RECOVERY_AREA_USAGE,V$RECOVERY_FILE_DEST)SYS@PROD1> select * from V$FLASH_RECOVERY_AREA_USAGE;FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
-------------------- ------------------ ------------------------- ---------------
CONTROL FILE 0 0 0
REDO LOG 0 0 0
ARCHIVED LOG 5 0 5
BACKUP PIECE 41.8 1.38 17
IMAGE COPY 0 0 0
FLASHBACK LOG 13.34 0 11
FOREIGN ARCHIVED LOG 0 0 07 rows selected.SYS@PROD1> col name for a45
SYS@PROD1> select * from V$RECOVERY_FILE_DEST;NAME SPACE_LIMIT SPACE_USED SPACE_RECLAIMABLE
--------------------------------------------- ----------- ---------- -----------------
NUMBER_OF_FILES
---------------
/u01/app/oracle/fast_recovery_area/ 4322230272 2652056064 5985843234SYS@PROD1> select round(100*(a.space_used/space_limit),2) from v$recovery_file_dest a;ROUND(100*(A.SPACE_USED/SPACE_LIMIT),2)
---------------------------------------62.57
这篇关于监控flash_recovery_area的使用情况(V$FLASH_RECOVERY_AREA_USAGE,V$RECOVERY_FILE_DEST)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!