Tuesday, July 17, 2018

Alert log Clear or Move

cp -rp alert_dcpdb1.log alert_dcpdb1.log.bk.030718
> alert_dcpdb1.log

cat alert_dcpdb1.log.bk.030718 | grep -i ora-
tail -1000 alert_dcpdb1.log.bk.030718 > alert_dcpdb1.log.bk.030718.1000lines

tail -3000 alert_dcpdb2.log > /u02/app/alert_dcpdb2.log

No comments:

Post a Comment