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 {} \;
+++++++++++++++++++++++++++++++++++++++++++
Other Health Check Scripts for DBA and Apps DBA
No comments :
Post a Comment