Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

Enable Flash Recovery Area In Oracle Database

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 13 Sep, 2023
  • 0 Comments
  • 2 Mins Read

Enable Flash Recovery Area In Oracle Database

How To Enable Flash Recovery Area (FRA) In Oracle Database ?

The flash recovery area(FRA) is an Oracle-managed location ( it may be FILE SYSTEM or ASM ) for centralized backup and recovery files. It streamlines backup management.

The Flash Recovery Area contains the following recovery-related files:

  1. Flashback logs.
  2. Control file auto backups.
  3. Datafile and control file copies.
  4. Backup pieces.
  5. Archived redo logs.
  6. Online redo logs.
  7. Current control file.

DB_RECOVERY_FILE_DEST_SIZE and DB_RECOVERY_FILE_DEST these are 2 initial parameters are required for enabling FRA.

  1. DB_RECOVERY_FILE_DEST_SIZE: It is the disk quota size for the flash recovery area.
  2. DB_RECOVERY_FILE_DEST: It is a valid destination Parameter for the Flash Recovery Area. It can be a directory, file system, or ASM disk group.

NOTE : DB_RECOVERY_FILE_DEST_SIZE must be set before DB_RECOVERY_FILE_DEST.

Execute below query to Check whether FRA is enabled or not.
1
2
3
4
5
6
7
8
9
10
SQL> show parameter db_recovery_file
 
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string
db_recovery_file_dest_size big integer 0
 
SQL> select * from V$RECOVERY_FILE_DEST;
 
no rows selected
2. Enable FRA.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SQL> alter system set db_recovery_file_dest_size=20G scope=both;
 
System altered.
 
SQL> alter system set db_recovery_file_dest='/data/app/oracle/oradata/FRA' scope=both;
 
System altered.
 
 
SQL> show parameter db_recovery_file
 
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string /data/app/oracle/oradata/FRA
db_recovery_file_dest_size big integer 20G
 
 
select * from V$RECOVERY_FILE_DEST;
NAME SPACE_LIMIT SPACE_USED SPACE_RECLAIMABLE NUMBER_OF_FILES CON_ID
-------------------------------------- ----------- ---------- ----------------- --------------- ----------
/data/app/oracle/oradata/FRA 2.1475E+10 0 0 0 0
FRA Enabled.
How to make archivelog destination same as flash recovery area:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
SQL> alter system set log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST' scope=both;
 
System altered.
 
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 816
Next log sequence to archive 818
Current log sequence 818
SQL> alter system switch logfile;
 
System altered.
1* select * from v$flash_recovery_area_usage
SQL> /
 
FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES CON_ID
----------------------- ------------------ ------------------------- --------------- ----------
CONTROL FILE 0 0 0 0
REDO LOG 0 0 0 0
ARCHIVED LOG .01 0 1 0
BACKUP PIECE 0 0 0 0
IMAGE COPY 0 0 0 0
FLASHBACK LOG .49 0 2 0
FOREIGN ARCHIVED LOG 0 0 0 0
AUXILIARY DATAFILE COPY 0 0 0 0
 
8 rows selected.
FOR RAC : For RAC database, DB_RECOVERY_FILE_DEST_SIZE and DB_RECOVERY_FILE_DEST parameter must be same across all the instances. So it is recommended to put FRA on ASM DISKS.
1
2
3
4
5
6
7
SQL> alter system set db_recovery_file_dest_size=20G scope=both sid='*';
 
System altered.
 
SQL> alter system set db_recovery_file_dest='+FRADG' scope=both sid='*';
 
System altered.

Hope it Helps!