# Check disk usage exceeds 90%, and in the background process is not rman run, run /data/script/del_dg_arch.sh archive cleanup script

# Check disk usage exceeds 90%, and in the background process is not rman run, run /data/script/del_dg_arch.sh archive cleanup script
a=`df -m /data |tail -n 1|awk '{print int($5)}'`
b = `ps -ef | grep rman | grep -v grep | wc -l`
 
if [[ $a -lt 90 && $b -lt 1 ]]
  then
    echo $a >> /home/oracle/archbak.log
    echo $b >> /home/oracle/archbak.log
    date >> /home/oracle/archbak.log
    /data/script/del_dg_arch.sh 
be
 
 
 
 

Guess you like

Origin www.cnblogs.com/liang545621/p/12610621.html