purgeLogs: Archive & Cleanup traces, logs in one command (Doc ID 2081655.1)
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=221156612954064&id=2081655.1&_adf.ctrl-state=wze2k6dq0_53
0 1 * * 5 /u03/app/oracle/utils/purgeLogs -orcl 90 > /u03/app/oracle/purgelogs/orcl/`date +\%Y\%m\%d\%H\%M\%S`-orcl.log 2>&1
15 1 * * 5 /u03/app/oracle/utils/purgeLogs -orcl 365 -aud > /u03/app/oracle/purgelogs/aud/`date +\%Y\%m\%d\%H\%M\%S`-aud.log 2>&1
#15 1 7 */2 * /u03/app/oracle/utils/purgeLogs -lsnr > /u03/app/oracle/purgelogs/lsnr/`date +\%Y\%m\%d\%H\%M\%S`-lsnr.log 2>&1
45 1 * * 5 /u03/app/oracle/utils/purgeLogs -tfa 90 > /u03/app/oracle/purgelogs/tfa/`date +\%Y\%m\%d\%H\%M\%S`-tfa.log 2>&1
0 2 * * 5 /u03/app/oracle/utils/purgeLogs -osw 90 > /u03/app/oracle/purgelogs/osw/`date +\%Y\%m\%d\%H\%M\%S`-osw.log 2>&1
15 2 * * 5 /u03/app/oracle/utils/purgeLogs -oda 90 > /u03/app/oracle/purgelogs/oda/`date +\%Y\%m\%d\%H\%M\%S`-oda.log 2>&1
Comments
Post a Comment
Dear User,
Thank you very much for your kind response