2022-10-07 10:48:59 +08:00
|
|
|
connect target /
|
|
|
|
|
2022-10-07 16:37:54 +08:00
|
|
|
configure device type disk parallelism 3;
|
|
|
|
CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 5G;
|
|
|
|
|
2022-10-07 10:48:59 +08:00
|
|
|
run {
|
|
|
|
crosscheck archivelog all;
|
2022-10-07 16:37:54 +08:00
|
|
|
backup archivelog all not backed up 1 times format '/orabackup/arch/%d_%s_%p_%e_%t';
|
2022-10-07 10:48:59 +08:00
|
|
|
}
|
|
|
|
|
2022-10-07 16:37:54 +08:00
|
|
|
run {
|
2022-10-07 10:48:59 +08:00
|
|
|
delete noprompt archivelog until time = 'sysdate-2' backed up 1 times to device type disk;
|
|
|
|
}
|
|
|
|
|
|
|
|
exit;
|