find /opt/oracle/grid/diag/asm/+asm/+ASM2/trace/ -type f -name '*.trc' -mtime +3 -exec rm -f {} \;
find /opt/oracle/grid/diag/asm/+asm/+ASM2/trace/ -type f -name '*.trm' -mtime +3 -exec rm -f {} \;
cp /opt/oracle/grid/diag/asm/+asm/+ASM2/trace/*.trc /opt/oracle/arch2/backup_tracefile20110917
cp /opt/oracle/grid/diag/asm/+asm/+ASM2/trace/*.trm /opt/oracle/arch2/backup_tracefile20110917
delete trace file older than 3 days ...
su - grid
find /opt/oracle/grid/diag/asm/+asm/+ASM1/trace -name "*.trc" -mtime +3 -exec rm -f {} \;
find /opt/oracle/grid/diag/asm/+asm/+ASM1/trace -name "*.trm" -mtime +3 -exec rm -f {} \;
su - oracle
find /opt/oracle/app/oracle/diag/rdbms/boss/boss1/trace -name "*.trc" -mtime +3 -exec rm -f {} \;
find /opt/oracle/app/oracle/diag/rdbms/boss/boss1/trace -name "*.trm" -mtime +3 -exec rm -f {} \;
delete trace file older than 3 days ...
su - grid
find /opt/oracle/grid/diag/asm/+asm/+ASM1/trace -name "*.trc" -mtime +3 -exec rm -f {} \;
find /opt/oracle/grid/diag/asm/+asm/+ASM1/trace -name "*.trm" -mtime +3 -exec rm -f {} \;
su - oracle
find /opt/oracle/app/oracle/diag/rdbms/boss/boss1/trace -name "*.trc" -mtime +3 -exec rm -f {} \;
find /opt/oracle/app/oracle/diag/rdbms/boss/boss1/trace -name "*.trm" -mtime +3 -exec rm -f {} \;
No comments:
Post a Comment