Oracle Apps DBA Health Checkup and performance scripts Part 3 Apache, Form and Report log file deletion scripts in R12

The following scripts will delete old report, form and apache log files. Save the following code segments in a shell scripts.


+++++++++++++++++++++++++++++++++++++++++++

#Apache Log File Deletion
dir='<INST TOP>/apps/<SID>_<domain>/logs/ora/10.1.3/Apache'
age=30
find $dir -type f -name '*log*' -mtime +$age -exec rm {} \;

#Form and Report log deletion

find <INST TOP>/apps/<SID>_<domain>/logs/ora/10.1.2/reports \
-type f -name '*.*' -mtime +30 -exec rm {} \;

<INST TOP>/apps/<SID>_<domain>/logs/ora/10.1.2/forms \
-type f -name '*' -mtime +30 -exec rm {} \;

+++++++++++++++++++++++++++++++++++++++++++






No comments :