Monday, 27 August 2012

Monitoring Space in the Flash Recovery Area


SQL:


SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     16
Next log sequence to archive   18
Current log sequence           18


alter system set db_recovery_file_dest='D:\oracle\product\10.2.0\flasback_recovery_area\' scope=spfile;

alter system set db_recovery_file_dest_size=10G scope=spfile;

select * from v$flash_recovery_area_usage;

RMAN:

rman target 'sys@orcl'
password:

rman> show all

mrna> backup database;


OR

SELECT
ROUND((SPACE_USED - SPACE_RECLAIMABLE)/SPACE_LIMIT * 100, 1)
AS PERCENT_FULL
FROM V$RECOVERY_FILE_DEST;

OR

SELECT
    NAME,
    TO_CHAR(SPACE_LIMIT, '999,999,999,999') AS SPACE_LIMIT,
    TO_CHAR(SPACE_LIMIT - SPACE_USED + SPACE_RECLAIMABLE, '999,999,999,999')
       AS SPACE_AVAILABLE,
    ROUND((SPACE_USED - SPACE_RECLAIMABLE)/SPACE_LIMIT * 100, 1)
       AS PERCENT_FULL
    FROM V$RECOVERY_FILE_DEST;

1 comment:

Unknown said...

You really expanded upon a subject that I usually don't care much about and made it very exciting. This is a unique blog that I will take note of it.
Oracle Training