How to realize automatic cleaning script Code of Oracle Archive Log under Linux
This article mainly introduces how to realize the automatic cleaning script code of Oracle archive log under Linux. It is very detailed and has a certain reference value. Interested friends must read it!
The code is as follows:
#! / bin/sh
Export BACK_DATE= `date +% Y% m% d`
Export BACKUP_PATH=/home/oracle/dbbak
Echo `mkdir-p ${BACKUP_PATH} / archivelog/$ {BACK_DATE} `
Rman msglog=$BACKUP_PATH/archivelog/$ {BACK_DATE} / arch_0_$BACK_DATE.log