RMAN - Delete backed up archive logs [message #405644] |
Thu, 28 May 2009 20:28 |
Erdenejargal
Messages: 18 Registered: July 2008
|
Junior Member |
|
|
Hi,
Following script can work normal. But I want to delete 5 days ago, archive input log.
How to do that?
run {
allocate channel d1 type disk;
setlimit channel d1 kbytes 2097150 maxopenfiles 32 readrate 200;
backup
incremental level 0 cumulative
skip inaccessible
tag wednesday_level_0
format '/backup/df_t%t_s%s_p%p_%c'
database;
copy current controlfile to '/backup/wednesday.ctl';
sql 'alter system archive log current';
backup
format '/backup/al_t%t_s%s_p%p_%c'
archivelog all;
release channel d1;
}
run {
allocate channel r1 type disk;
BACKUP ARCHIVELOG ALL DELETE ALL INPUT format '/backup/df_t%t_s%s_p%p_%c';
release channel r1;
}
run {
allocate channel v1 type disk;
restore database validate;
release channel v1;
}
BR,
Erdenejargal.B
|
|
|
|
|