How
to Configuring the FRA
Configuring the FRA is easy,by
default Flash Recovery area is ORACLE_BASE.First you create the base directory
of the FRA from the OS, and then you set the following parameters in any
database that will use the FRA:
DB_RECOVERY_FILE_DEST
DB_RECOVERY_FILE_DEST_SIZE
The DB_RECOVERY_FILE_DEST parameter
defines the FRA base directory location. This
is the only directory you will
need to create when configuring the FRA. You will need to
make sure that this directory is
owned by the owner of the Oracle executable so that Oracle
can create other subdirectories
beneath it.
The DB_RECOVERY_FILE_DEST_SIZE parameter
defines the total amount of space for this
database instance is allowed to
consume in the FRA. This is a logical limit, which can be
greater than or less than the
actual physical limit of space on that device. For example, you
may have a file system with 500GB
of space available on it. However, you may want to
indicate that your database can
consume only up to 100GB of space within the FRA while
assigning the FRA to the 500GB
file system.
You use the alter system command
to configure the FRA. Note that DB_RECOVERY_
FILE_DEST is not dynamic, while DB_RECOVERY_FILE_DEST_SIZE
is dynamic. To configure the FRA, do the following:
1. Create the base
FRA directory:
E:\>mkdir \oracledb\flashback
E:\>
2. Log into
SQL*Plus:
E:\>sqlplus
SQL*Plus: Release 11.2.0.1.0
Production on Sat Jan 25 15:53:42 2014
Copyright (c) 1982, 2010,
Oracle. All rights reserved.
Enter user-name: sys@test as
sysdba
Enter password:
Connected to:
Oracle Database 11g Enterprise
Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data
Mining and Real Application Testing options
SQL>
3. Now use the alter
system command to set the parameter DB_RECOVERY_FILE_DEST to
\oracledb\flashback and DB_RECOVERY_FILE_DEST_SIZE
to 400GB.
sql>alter system set
db_recovery_file_dest_size=400GB;
sql>alter system set
db_recovery_file_dest=’ \oracledb\flashback’ scope=spfile;
4. Now shut down
and restart the database. Once the database has been restarted, the
FRA will become operational.
SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area
2538741760 bytes
Fixed Size 2257872 bytes
Variable Size 889195568 bytes
Database Buffers 1627389952 bytes
Redo Buffers 19898368 bytes
Database mounted.
Database opened.
SQL>