When backups of archived redo log files are taken on the Primary database:
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY; |
2. Issue the following command on the primary
database:
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; |
Usually by Default
When backups of archived
redo log files are taken on the standby database:
- Issue the following command on the primary database:
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY; |
- Issue the following command on the standby database:
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; |
On Primary Site :
Connect with sys and :
SQL>Alter system set "_log_deletion_policy" = 'ALL' scope=both;
The Archivelogs will be deleted on stanby site when a "Backup Database occurs in Primary Site" !!! To be confirmed
ON 10G
Create Shell Script:
#!/bin/bash
export ORACLE_SID=cmovelproddr
export ORACLE_HOME=/export/home/oracle/product/11.2.0/cmovelproddr
rman target=/ cmdfile=del_dg_arch.rcv log=delarchdr.log
exit
Create a RMAN rcv file del_dg_arch.rcv
CROSSCHECK ARCHIVELOG ALL;
DELETE NOPROMPT ARCHIVELOG ALL completed before 'SYSDATE-2/24';