﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals / Oracle Forum / RMAN - Error Codes  / RMAN-08000-08999  / RMAN-08137: WARNING: archive log not deleted as it is still needed / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals</description><link>http://www.franklinfaces.com/</link><webMaster>no-reply@FranklinFaces.com</webMaster><lastBuildDate>Sat, 31 Jul 2010 07:05:18 GMT</lastBuildDate><ttl>20</ttl><item><title>RMAN-08137: WARNING: archive log not deleted as it is still needed</title><link>http://www.franklinfaces.com/Topic133-69-1.aspx</link><description>&lt;FONT color=#3333dd&gt;Hi,&lt;/FONT&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;I'm getting the following error message everytime I do a log backup or even a hot backup along with archive logs.  &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;My configuration is Oracle 10gR2 with a Physical Standby Database.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;I appreciate the error message and Oracle states that this is an informational message only, however, our monitoring system picks this up and it sends out alerts unnecessarily.   Which annoys me because I have to wake up in the middle of the night.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;&lt;STRONG&gt;Sample:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color=#113333&gt;archive log filename=/u01/oradba/admin/PROD/arch_1/PROD_1_178007_647537618.arc recid=425136 stamp=688505501&lt;BR&gt;channel d4: finished piece 1 at 02-JUN-09&lt;BR&gt;piece handle=/u01/oradba/admin/PROD/rman_diskbackups/al_PROD_27273_1_688506356 tag=TAG20090602T194548 comment=NONE&lt;BR&gt;channel d4: backup set complete, elapsed time: 00:00:02&lt;BR&gt;RMAN-08137: WARNING: archive log not deleted as it is still needed&lt;BR&gt;archive log filename=/u01/oradba/admin/PROD/arch_1/PROD_1_178010_647537618.arc thread=1 sequence=178010&lt;BR&gt;Finished backup at 02-JUN-09&lt;BR&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;This is why my rman backup script is doing :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#113333&gt;&lt;STRONG&gt;replace script oracle_prod_log_disk{&lt;BR&gt;  allocate channel d1 type DISK;&lt;BR&gt;  backup&lt;BR&gt;  tag log_backup_PROD&lt;BR&gt;   format '/u01/oradba/admin/PROD/rman_logdiskbackups/al_%d_%s_%p_%t'&lt;BR&gt;   (archivelog like '/u01/oradba/admin/PROD/arch_1/%' delete input skip inaccessible);&lt;BR&gt;}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;To fix this ....after finding out that there is a known bug in 10gR2, I decided to follow what the Data Guard Do***ent says.  I hope this helps you guys out.   here is what I did:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;I changed my script to do the following:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#113333&gt;&lt;STRONG&gt;run {&lt;BR&gt;allocate channel d1 type DISK;&lt;BR&gt;backup&lt;BR&gt;tag log_backup_PROD&lt;BR&gt;format '/u01/oradba/admin/PROD/rman_logdiskbackups/al_%d_%s_%p_%t'&lt;BR&gt;(archivelog UNTIL TIME 'sysdate-1/24' not backed up 1 times);&lt;BR&gt;delete noprompt archivelog UNTIL TIME 'sysdate-2/24' backed up 1 times to device type disk;&lt;BR&gt;}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;Basically I got rid of the delete input part.   That is what was the driver behind that message.  Basically I'm backing up all archive logs that are older then 1 hour and deleting those that are backed up and older then 2 hours.   I could have changed this to older then 24 hours but there are times where the business decides to do heavy load and fills up my archive log destination.   This way I did it like this.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;I hope this helps.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;Good luck.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;Thanks,&lt;/FONT&gt;</description><pubDate>Thu, 04 Jun 2009 16:21:16 GMT</pubDate><dc:creator>Admin</dc:creator></item></channel></rss>