Oracle Applications logs Purging with out running CM
Step 1: Go to appropriate Log Directory
Step 2: If u want to delete only all modified files of before 2 days
Step 3: Then if u want to delete that files give the below command
Step 4: find -mtime +1|xargs rm
Match files modified two or more days ago.
This will purge bulk Logs With out any Interruption in Oracle Applications.
find . -mtime 0 # find files modified between now and 1 day ago
# (i.e., within the past 24 hours)
find . -mtime -1 # find files modified less than 1 day ago
# (i.e., within the past 24 hours, as before)
find . -mtime 1 # find files modified between 24 and 48 hours ago
find . -mtime +1 # find files modified more than 48 hours ago
find . -mmin +5 -mmin -10 # find files modified between
# 6 and 9 minutes ago
If u want to do periodically write crond job for this
No comments:
Post a Comment