Hi,
Sometimes You can get “RMAN-08120: WARNING: archived log not deleted, not yet applied by standby ” error.
Details of error are as follows.
RMAN-08120: WARNING: archived log not deleted, not yet applied by standby
Cause: This is an informational message to alert the user that an archived log that should have been
deleted was not as it has not been applied to the standby database. The next message identifies the archived log
Action: Archivelog can be deleted after it has been applied to standby database.
This error is encountered during Upgraded from 11.2.0.3 to 12.1.0.2.
SQL> SELECT * from v$archive_dest where (valid_now = 'UNKNOWN' AND status = 'DEFERRED') ;
If the above query returns a row (rows), then you have some destinations that are marked DEFERRED.
If you have one of V$ARCHIVE_DEST with valid_now=’UNKNOWN’ and status = ‘DEFERRED’.
Then because of Bug 16082541, we are considering DEFERRED destination applied archived logs too and hence rman not purging those.
To solve this error, run the following script for the deferred destinations
‘n’ id the dest_id
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_N = '' SCOPE = BOTH;
and rerun backup and check the RMAN-08120 Warning disappear
Do you want to learn more details about RMAN, then read the following articles.
https://ittutorial.org/rman-backup-restore-and-recovery-tutorials-for-beginners-in-the-oracle-database/