You are on page 1of 1

RUN

{
ALLOCATE CHANNEL C1 DEVICE TYPE SBT;
ALLOCATE CHANNEL C2 DEVICE TYPE SBT CONNECT sys/oracle@RAC2;
ALLOCATE CHANNEL C3 DEV1 DEVICE TYPE SBT CONNECT sys/oracle@RAC3;
SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
BACKUP ARCHIVELOG ALL;
}

run {
allocate channel t1 device type disk;
allocate channel t2 device type disk;
allocate channel t3 device type disk;
crosscheck archivelog all;
backup as compressed backupset archivelog all format '/RMAN_BACKUP/arch/%d_Arch_Log
%t_%s_%p';
release channel t1;
release channel t2;
release channel t3;
}

md_backup /db_logs/dg_bkp

You might also like