归档日志满的处理
只是一个记录贴,方便查阅。完全没有新意
归档日志一般需要保留。不建议删除
删除的方法:
rman target /
只保留7天的日志
delete archivelog all completed before 'sysdate-7';
删除7天前到现在的日志
DELETE ARCHIVELOG FROM TIME 'SYSDATE-7';
在os下删除日志,还需进行以下动作
rman target /
crosscheck archivelog all;
delete expired archivelog all;
report obsolete;
delete obsolete;
crosscheck archivelog all;
自动转移设置:
log_archive_dest _3='location=d:\archpaul\ NOREOPEN ALTERNATE=LOG_ARCHIVE_DEST_4'
log_archive_dest _4='location=d:\backup\ NOREOPEN OPTIONAL'
log_archive_dest_state_3=ENABLE
log_archive_dest_state_4=ALTERNATE