run {
allocate channel c1 device type disk;
allocate channel c2 device type disk;
backup as COMPRESSED BACKUPSET format '/u01/backup/rman/%d_%t_%s_%p' tag 'ENOVIA_full_backup' database;
SQL 'alter system switch logfile';
SQL 'alter system checkpoint';
crosscheck archivelog all;
backup AS COMPRESSED BACKUPSET archivelog all format '/u01/backup/rman/%d_Arch_Log%t_%s_%p';
backup tag = cf1 format '/u01/backup/rman/%d_Control_file%t_%s_%p' current controlfile;
release channel c1;
release channel c2;
}
allocate channel c1 device type disk;
allocate channel c2 device type disk;
backup as COMPRESSED BACKUPSET format '/u01/backup/rman/%d_%t_%s_%p' tag 'ENOVIA_full_backup' database;
SQL 'alter system switch logfile';
SQL 'alter system checkpoint';
crosscheck archivelog all;
backup AS COMPRESSED BACKUPSET archivelog all format '/u01/backup/rman/%d_Arch_Log%t_%s_%p';
backup tag = cf1 format '/u01/backup/rman/%d_Control_file%t_%s_%p' current controlfile;
release channel c1;
release channel c2;
}
No comments:
Post a Comment