Removing a backup example
A sample script for removing an old backup is provided.
About this task
To remove an old backup, issue this command from the RMAN
prompt:
run
{
allocate channel for delete type 'sbt_tape' parms
'ENV=(TDPO_OPTFILE=/home/oracle/tdpo.opt)';
change backupset backupset number delete;
}run
{
allocate channel for delete type 'sbt_tape' parms
'ENV=(TDPO_OPTFILE=C:\oracle\scripts\tdpo.opt)';
change backupset backupset number delete;
}Refer to the Oracle RMAN manual for more information about the change command and its options.