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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s