How to Relocate Flashback Logs to New Disk Group

we do not have any method to manually move old restore logs to new location via OS commands. Please drop any old restore points & create new restore points so that +FRAOLD gets cleared & new logs start generating in +FRANEW.

For restore point only:

SQL> select GUARANTEE_FLASHBACK_DATABASE,NAME from v$restore_point;

Drop Restore Point in primary database
On primary database:
SQL> drop RESTORE POINT restore_dg;

Drop Restore Point in standby database
Ensure the standby database is in mount state and drop
If Active Data Guard is used, open read only the standby database after dropping the Guaranteed restore point.
GUARANTEED RESTORE POINT :
SQL> drop restore point restore_dg;

For database flashback on:

When we modify FRA location, we need to flashback off & on the database so that flashback logs start generating in new location. When we flashback off & on, all the previously created restore points get void hence we need to drop them. We need to create a new restore point, this time as we have modified the FRA location, new flashback restore point logs start getting generated in new location.

Modify the flashback destinations ->
DB_RECOVERY_FILE_DEST and DB_RECOVERY_FILE_DEST_SIZE
SQL> alter system set db_recovery_file_dest='/+FRANEW' scope=both;
SQL> alter system set db_recovery_file_dest_size='';

Drop restore point
SQL> select GUARANTEE_FLASHBACK_DATABASE,NAME from v$restore_point;
Drop Restore Point in primary database

On primary database:
SQL> drop RESTORE POINT restore_dg;
Drop Restore Point in standby database
Ensure the standby database is in mount state and drop
If Active Data Guard is used, open read only the standby database after dropping the Guaranteed restore point.
GUARANTEED RESTORE POINT :
SQL> drop restore point restore_dg;

Turn off and turn on flashback :
Since the Oracle DB version is 11g, we can perform the below activity with out downtime.
SQL> ALTER DATABASE FLASHBACK OFF;
SQL> ALTER DATABASE FLASHBACK ON;

Please do not run any OS command to remove flashback logs from +FRAOLD manually.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.