Purge/delete archive logs in different methods
archive log from db if you want to delete older item with out any backup you can fallow below one of the procedure.
============SYSDATE===in below is 7day u can change per yourt need=================
rman connect target /
crosscheck archivelog all;
delete noprompt archivelog until time 'sysdate-7';
crosscheck archivelog all;
delete noprompt expired archivelog all;
LIST ARCHIVELOG ALL;
crosscheck archivelog all;
exit
======Using until time and date===in below you can change per your need=================
rman connect target /
crosscheck archivelog all;
run{
DELETE archivelog until time "to_date('2017-04-11:08:00:00','YYYY-MM-DD:hh24:mi:ss')";
}
crosscheck archivelog all;
delete noprompt expired archivelog all;
LIST ARCHIVELOG ALL;
crosscheck archivelog all;
exit
============SYSDATE===in below is 7day u can change per yourt need=================
rman connect target /
crosscheck archivelog all;
delete noprompt archivelog until time 'sysdate-7';
crosscheck archivelog all;
delete noprompt expired archivelog all;
LIST ARCHIVELOG ALL;
crosscheck archivelog all;
exit
======Using until time and date===in below you can change per your need=================
rman connect target /
crosscheck archivelog all;
run{
DELETE archivelog until time "to_date('2017-04-11:08:00:00','YYYY-MM-DD:hh24:mi:ss')";
}
crosscheck archivelog all;
delete noprompt expired archivelog all;
LIST ARCHIVELOG ALL;
crosscheck archivelog all;
exit
Comments
Post a Comment