RMAN Script for Tape Backup : Tivoli Storage Manager

[sourcecode language=”sql”]

run
{
allocate channel sbt1 type sbt parms ‘ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)’;
allocate channel sbt2 type sbt parms ‘ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)’;
CONFIGURE DEFAULT DEVICE TYPE TO ‘SBT_TAPE’;
BACKUP DATABASE FORMAT ‘MW_FULL_%s_%D_%M_%Y’ tag ‘MW_DAILY_FULL_DB_BKP’;
BACKUP archivelog all not backed up 1 times format ‘ARCH_%d_ALL_%s_%t’ tag ‘MW_ARCH_LOG_BKP’;
release channel sbt1;
release channel sbt2;
}

[/sourcecode]

Leave a Reply