Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize automatic cleaning script Code of Oracle Archive Log under Linux

Shulou Source: shulou.com Published: 2022-06-03 07:41:26 11月15日 Update

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

Tags: Code logs scripts content articles values interests guys buddies more knowledge industry information channels channels references help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MariaDB OPPO Reno Redmi Microsoft