Applies to:
Oracle Server - Enterprise Edition - Version: 10.1.0.0 to 11.1
Information in this document applies to any platform.
Information in this document applies to any platform.
Maintenance of archivelogs which are already applied on standby database in Oracle 10g
Solution
In Oracle 10g, RMAN has a specific configuration for archivelog deletion policy i.e.
ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY
This parameter can be set on primary and standby databases.
To enable automatic maintenance of the archivelogs on standby perform the below steps on standby database :
Step 1 : Enable the flash recovery area on the standby database so that all the archivelogs are shipped in the flash recovery area.
Example :
To enable Flash Recovery Area and to allow the archivelogs to be shipped to Flash Recovery Area set the below parameters
SQL> alter system set DB_RECOVERY_FILE_DEST='/disk1/FRA';
SQL> alter system set DB_RECOVERY_FILE_DEST_SIZE=80G;
SQL> alter system set LOG_ARCHIVE_DEST_1='LOCATION=USE_DB_RECOVERY_FILE_DEST';
Step 2 : Set the parameter Archive log deletion policy to applied on standby
Example :
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
References
Oracle Metalink Doc ID 464668.1
clear and excellent explanation
ReplyDeleteHello,
ReplyDeleteJust confirming my understanding. If i set below parameter in the rman of the standby database(which is in mount state), it will
only the delet thearchives from standby server(LOG_ARCHIVE_DEST_2).
It will not effect the archives on primary server (LOG_ARCHIVE_DEST_1).
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
Thanks & Regards,
Deepak Jha