Database Backup and Recovery (MOSC)

MOSC Banner

rman remove backups of archivelogs

Hi,

using this script to backup archivelogs:

run

{


allocate channel ch1 device type disk;



set limit channel ch1 kbytes 30097152;


sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';

backup archivelog all not backed up 1 times format '/mnt/backup_synology/db-backup/%dRUIS/arch_%n%T_%p%U' ;


delete noprompt obsolete ;


select to_char(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual;


}

Backup retention policy is set to redundancy 1.

I ran a full backup today then ran the script to backup the archivelogs. I expected (obsolete) backups of archivelogs from yesterday (and before) to be removed, but they are not.

Why?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center