#检查磁盘使用率超过90%,并且后台进程没有rman在跑,就运行 /data/script/del_dg_arch.sh 脚本清理归档
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
fi
原文地址:https://www.cnblogs.com/liang545621/p/12610621.html
时间: 2024-09-30 21:20:26