Database Backup and Recovery (MOSC)

MOSC Banner

RMAN job stopped deleting old backups.

edited Jan 23, 2013 2:14PM in Database Backup and Recovery (MOSC) 1 commentAnswered
 I have a simple rman job run on a (11.2.0.1) database nightly, backup the database & archivelogs delete all the archivelogs that have been backed up, and retain 1 day worth of backups. 
Script is here:

$rman_script="backup device type disk tag '%TAG' database;
backup device type disk tag '%TAG' archivelog all not backed up delete all input;
allocate channel for maintenance type disk;
delete noprompt obsolete device type disk;
release channel;
";
&br_save_agent_env();
&br_prebackup($l_db_connect_string, $l_is_cold_backup, $l_use_rcvcat, $l_db_10_or_higher, $l_backup_strategy, "TRUE");
my $result = &br_backup();
exit($result);

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