arch log 删除脚本:
. /home/oracle/.bash_profile
NLS_LANG=AMERICAN_AMERICA.AL32UTF8;export NLS_LANG
export NOW=`date '+%y-%m-%d-%H'`
RMAN_LOG=/home/oracle/ocs/logs;export RMAN_LOG
$ORACLE_HOME/bin/rman target / log=$RMAN_LOG/del_arch_$NOW.log<< EOF
crosscheck archivelog all;
delete force noprompt expired archivelog all;
delete force noprompt archivelog until time 'sysdate - 2';
exit;
EOF