SAP 数据增长空间太快

背景: 我们是在一台数据库上删除另外的一台数据库上的大量数据,运用的crontab + linux shell + rman,然后生产了大量的日志。
解决方法
清除以下的日志
 

在这里插入图片描述

deletearchivelog.sh脚本

export ORACLE_SID=QAS
export ORACLE_BASE=/oracle
export ORACLE_HOME=/oracle/QAS/112_64
/oracle/QAS/112_64/bin/rman target / << EOF
run {
crosscheck archivelog all;
delete noprompt expired archivelog all;
delete noprompt archivelog all completed before 'sysdate-1';
}

猜你喜欢

转载自blog.csdn.net/SAPmatinal/article/details/132134966
SAP