#!/bin/sh
#用于当前目录下都是文件的
#find /opt/oracle/archive -ctime +10 -exec rm -f {} \;
#用于当前目录下都是文件夹的
# find /opt/oracle/archive -maxdepth 1 -type d -ctime +10 | awk '{if($0=="./") next;else print}' | xargs -n 1 -I {} rm -rf {}
rman << EOF
connect target /;
crosscheck archivelog all;
delete expired archivelog all;
yes
EOF
阅读(1252) | 评论(0) | 转发(0) |