RMAN-08138: WARNING: archived log not deleted


When trying to delete archive log we might see below error when archives are already applied to standby database.



RMAN-08138: WARNING: archived log not deleted - must create more backups


We do not need a backup of archived logs on standby site if backup is already configured on the primary database.Same error may come be returned on primary database as well while deleting archived logs without taking a backup.


RMAN> delete archivelog logseq  12342;


using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=1221 instance=gold device type=DISK

RMAN-08138: WARNING: archived log not deleted - must create more backups


Set the archived logs deletion policy to “APPLIED ON ALL STANDBY” only and it should not be configured to have at least one backup before it could be deleted.


Current Policy


RMAN> show archivelog deletion policy;


RMAN configuration parameters for database with db_unique_name gold are:

CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY BACKED UP 1 TIMES TO DISK


Set the policy to have archived logs deleted without a backup.


RMAN> configure archivelog deletion policy to applied on all standby;


old RMAN configuration parameters:

CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY BACKED UP 1 TIMES TO DISK;

new RMAN configuration parameters:

CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;

new RMAN configuration parameters are successfully stored


Now we can try deleting the archive logs.





If you like please follow and comment