Hi Friends I am going to explain how to bypass RMAN-08137 error when we use dataguard. When we try to delete archive log files in primary database, we can see following error. It means we can not archivelog because some archivelogs has not been moved to standby database yet. Maybe you can ask that why we need to remove this archivelog without moved to standby database. In certain circumstance when there is no space for archivelog in primary database, database will be hang.In this situtation we need to make room for new archive log and we try to remove archivelog file by using rman but we have seen following error. I will explain that how can we bypass this error. Actually there is a simple way to do this.We can remove archivelog manually but this method may lead us to make wrong things so I will explain to remove archivelog by using rman.
RMAN> list archivelog all;
List of Archived Log Copies for database with db_unique_name YAYAPRM
=====================================================================Key Thrd Seq S Low Time
——- —- ——- – ———
2086 1 132 A 14-OCT-15
Name: /oracle/fast_recovery_area/YAYAPRM/archivelog/2015_10_14/o1_mf_1_132_c1wfl5dv_.arc2087 1 133 A 14-OCT-15
Name: /oracle/fast_recovery_area/YAYAPRM/archivelog/2015_10_14/o1_mf_1_133_c1wfl9ds_.arc2088 1 134 A 14-OCT-15
Name: /oracle/fast_recovery_area/YAYAPRM/archivelog/2015_10_14/o1_mf_1_134_c1wflbhp_.arc2089 1 135 A 14-OCT-15
Name: /oracle/fast_recovery_area/YAYAPRM/archivelog/2015_10_14/o1_mf_1_135_c1wfldfp_.arc2090 1 136 A 14-OCT-15
Name: /oracle/fast_recovery_area/YAYAPRM/archivelog/2015_10_14/o1_mf_1_136_c1wflfj5_.arcRMAN> delete archivelog all;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=17 device type=DISK
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/fast_recovery_area/YAYAPRM/archivelog/2015_10_14/o1_mf_1_132_c1wfl5dv_.arc thread=1 sequence=132
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/fast_recovery_area/YAYAPRM/archivelog/2015_10_14/o1_mf_1_133_c1wfl9ds_.arc thread=1 sequence=133
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/fast_recovery_area/YAYAPRM/archivelog/2015_10_14/o1_mf_1_134_c1wflbhp_.arc thread=1 sequence=134
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/fast_recovery_area/YAYAPRM/archivelog/2015_10_14/o1_mf_1_135_c1wfldfp_.arc thread=1 sequence=135
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/oracle/fast_recovery_area/YAYAPRM/archivelog/2015_10_14/o1_mf_1_136_c1wflfj5_.arc thread=1 sequence=136