Oracle’s default Flash Recovery Area (FRA) location default location is at ORACLE_BASE/flash_recover y_area. Most of the times you want to take it from the default storage where you install oracle software to another storage device.
Flash Recovery Area feature allows you to set up a location on disk where your database can create/manage different kinds of backup and recovery files for you. Using a FRA eases the database administration by automatically naming recovery-related files, retaining them as long as they are needed for restore and recovery, and erase them when they are no longer needed to restore your database and/or space is needed for some backup and recovery purpose.
To move yours database FRA to a new location, start SQLPlus to modify the DB_RECOVERY_FILE_DEST initialization parameter.
SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='/u 01/flash_recovery_area' SCOPE=BOTH SID='*';
-- or if you use ASM:
SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='+d isk1' SCOPE=BOTH SID='*';
After you change this parameter, all new FRA files will be created in the new location.
The permanent files (control files and online redolog files), flashback logs and transient files can be left in the old FRA location. The database will delete the transient files from the old FRA location as they become eligible for deletion.
For FLASHBACK logfiles to be able to to pick up the new DB_RECOVERY_FILE_DEST location, the flashback option needs to be restarted like this:
SQL> shutdown immediate;
SQL> startup mount;
SQL> ALTER DATABASE FLASHBACK OFF;
SQL> ALTER DATABASE FLASHBACK ON;
SQL> ALTER DATABASE OPEN;
Flash Recovery Area feature allows you to set up a location on disk where your database can create/manage different kinds of backup and recovery files for you. Using a FRA eases the database administration by automatically naming recovery-related files, retaining them as long as they are needed for restore and recovery, and erase them when they are no longer needed to restore your database and/or space is needed for some backup and recovery purpose.
To move yours database FRA to a new location, start SQLPlus to modify the DB_RECOVERY_FILE_DEST initialization parameter.
SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='/u
-- or if you use ASM:
SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='+d
After you change this parameter, all new FRA files will be created in the new location.
The permanent files (control files and online redolog files), flashback logs and transient files can be left in the old FRA location. The database will delete the transient files from the old FRA location as they become eligible for deletion.
For FLASHBACK logfiles to be able to to pick up the new DB_RECOVERY_FILE_DEST location, the flashback option needs to be restarted like this:
SQL> shutdown immediate;
SQL> startup mount;
SQL> ALTER DATABASE FLASHBACK OFF;
SQL> ALTER DATABASE FLASHBACK ON;
SQL> ALTER DATABASE OPEN;
No comments:
Post a Comment