qflash.sql

The qflash script will show the space allocated and used in the flash recovery, it will also listed whether flashback is turned on and the oldest time the database can be flashed back to.

SQL

set lines 128

col name format a50
select name, space_limit/1024/1024/1024 “Limit GB”,
space_used/1024/1024/1024 “Used GB”,
space_reclaimable/1024/1024/1024 “Reclam GB”
from V$RECOVERY_FILE_DEST;

select * from V$FLASH_RECOVERY_AREA_USAGE;

select flashback_on from v$database;

SELECT OLDEST_FLASHBACK_SCN,
to_char(OLDEST_FLASHBACK_TIME,’dd/mm/yy hh24:mi’) OLDEST_FLASHBACK_TIME FROM
V$FLASHBACK_DATABASE_LOG;

Output

Leave a comment