Oracle E-business suite logs clean up
#!/bin/bash
cd $EBS_DOMAIN_HOME
find $EBS_DOMAIN_HOME -type f -path "*/logs/*.log?*" -mtime +10 -exec rm {} \;
find $EBS_DOMAIN_HOME -type f -path "*/logs/*.out?*" -mtime +10 -exec rm {} \;
#add validation code to check if env is set,
cd $IAS_ORACLE_HOME/instances
find $IAS_ORACLE_HOME/instances -type f -path "*diagnostics/logs*log.*" -mtime +10 -exec rm {} \;
Good info Manoj and it will be useful
ReplyDelete