Configuring FRA – Flash Recovery Area

Today I faced very funny issue related to FRA – Flash Recovery Area.

Linux guys informed us to clear old files as one of the mount point on database server had reached to its threshold free space.

After investigating we found that one of database ORACLE_HOME was 192GB is size. Definitely something was wrong with it.

I found that archivelogs are getting created under $ORACLE_HOME/dbs location though we were using FRA under ASM diskgroup.


SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination db_recovery_file_dest
Oldest online log sequence 421
Next log sequence to archive 425
Current log sequence 425

SQL> sho parameter db_recovery_file_dest
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string +T_ARCHIVING
db_recovery_file_dest_size big integer 80G

SQL> sho parameter log_archive_dest_1
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_1 string LOCATION=DB_RECOVERY_FILE_DEST

I was thinking everything is proper but still y archives are getting generated on filesystem instead of FRA 😦

Definitely somewhere there was mistake but where… I followed simple approach to go through Oracle docs related to FRA.

Here I found following :

If a fast recovery area is configured, then you can add the fast recovery area as an archiving destination by setting any LOG_ARCHIVE_DEST_n parameter to LOCATION=USE_DB_RECOVERY_FILE_DEST.

So here is the culprit, parameter log_archive_dest_1 was set to “LOCATION=DB_RECOVERY_FILE_DEST” instead of “LOCATION=USE_DB_RECOVERY_FILE_DEST” 😀

Making necessary changes in said parameter resolved issue.


SQL> sho parameter log_archive_dest_1
NAME TYPE VALUE
------------------------------------ ----------- ----------------------------------
log_archive_dest_1 string LOCATION=USE_DB_RECOVERY_FILE_DEST

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

ASMCMD [+T_ARCHIVING/DATAMIG/ARCHIVELOG/2014_08_12] > ls
thread_1_seq_426.319.855411089
thread_1_seq_427.3475.855411181

Hope so u will find this post very useful 🙂

Cheers

Regards,

Adityanath

5 replies

  1. Hey There. I found your blog using msn. This is a very well written article. I抣l be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I抣l definitely return.

  2. im bit confused , if we have only set FRA but we do not set below location parameter

    alter system set log_archive_dest_1=’LOCATION=USE_DB_RECOVERY_FILE_DEST’;

    we simply put database in archivelog , even then archives are generated in

    /u01/app/oracle/fra/ORADB/archivelog/2021_09_03

    as per my understanding for dataguard configuration we need to set log_archive_dest_1 parameter
    plz advise

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 )

Connecting to %s