分类: Oracle
2013-11-01 13:51:06
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;
CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 4096 M FORMAT '/data2/backup/%U';
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
run{
crosscheck backupset;
#delete noprompt obsolete recovery window of 8 days;
backup as compressed backupset database format = "/data2/backup/%n_data_%T_%U.bak" ;
backup as compressed backupset current controlfile plus archivelog not backed up 1 times format = "/data2/backup/%n_log_%T_%U.bak" ;
backup spfile format ='/data2/backup/%n_spfile_%T_%U.bak';
backup as compressed backupset current controlfile format='/data2/backup/%n_control_%T_%U.bak';
}
~
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 4096 M;
run{
crosscheck backupset;
delete noprompt obsolete recovery window of 8 days;
backup as compressed backupset current controlfile plus archivelog not backed up 1 times format = "/data2/backup/%n_log_%T_%U.bak" ;
DELETE NOPROMPT ARCHIVELOG all completed before 'sysdate-4';
}