How to Move the Flash Recovery Area location in Oracle
Sometimes because of space requirements or other reasons we need to change the FRA(Flash Recovery Area) location.
This task requires you to stop and start your Oracle instance.
I will go thrum all of the steps that are needed to be done in order to complete the relocation of your
FRA(Flash Recovery Area) location.
1 - You need to have your new area created(the directory) and make sure that the Oracle user has the appropriate rights over the directory.
2 - Open a SQL command line and alter the value of the DB_RECOVERY_FILE_DEST parameter using the bellow syntax:
sql:altersystemsetDB_RECOVERY_FILE_DEST='new FRA location path'SCOPE=BOTHSID=*;
At this point the all new Flash Recovery Area files will be created in the new location.
3- Make the new changes available at this point you need to restart your database
--Shutdown the Database
SQLshutdown;--Startup mount the Database:
SQLstartupmount;--Toggle the Flashback off:
SQLalterdatabaseflashbackoff;--Toggle the Flashback on:
SQLalterdatabaseflashbackon;--Open the Database:
SQLalterdatabaseopen;
4- Move your current permanent files, transient files, to the new Flash Recovery Area, then follow the following steps:
4.1 -- To move the existing backup sets and archived redo log files,use the following
4.4 -- To move the online redo logs. Use the commands to add a a log file stored in
the new Flash Recovery Area and drop the logfile in the old Flash Recovery Area
for each redo log group.
SQLalterdatabaseaddlogfilesize100M;SQLalterdatabasedroplogfile'name of the old redo log';
Oracle will clean up transient files remaining in the old Flash Recovery Area
location as they become eligible for deletion.