Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

DBA2 - Fast Recovery Area

Back


Fast Recovery Area

Configuring the Fast Recovery Area

ALTER SYSTEM SET db_recovery_file_dest = directory | disk group
ALTER SYSTEM SET db_recovery_file_destsize = integer [K | M | G]

Monitoring the Fast Recovery Area

Parameters Description
DB_RECOVERY_FILE_DEST null,Default location for the flash recovery area.
DB_RECOVERY_FILE_DEST_SIZE null, size of flash recovery area.

Lab: Query current info of FRA

-- View the current FRA
show parameter db_recovery_file_dest;
-- NAME                       TYPE        VALUE
-- -------------------------- ----------- ---------------------------
-- db_recovery_file_dest      string      /u01/app/oracle/oradata/fra
-- db_recovery_file_dest_size big integer 10G

fra01

fra01


Lab: Alter the destination and size of fra

-- View the current FRA
show parameter db_recovery_file_dest;

-- alter system to change the path of fra
ALTER SYSTEM SET db_recovery_file_dest='/u01/app/oracle/fast_recovery_area' SCOPE=both;
ALTER SYSTEM SET db_recovery_file_dest_size=10G SCOPE=both;

-- Confirm the current FRA
show parameter db_recovery_file_dest;

fra01

# copy all files and dir from old fra to the new fra
cp -Rf /u01/app/oracle/oradata/fra/ORCL/. /u01/app/oracle/fast_recovery_area/ORCL/

TOP