Logs clean-up,
housekeeping of OMS
1) For Oracle Management Service Log and Trace
Files:
*****************************************************
find
/applications/oracle/OEM/OEM1/gc_inst/em/EMGC_OMS1/sysman/log/ -name
"emoms.trc*" -mtime +7 -print|xargs rm
find
/applications/oracle/OEM/OEM1/gc_inst/em/EMGC_OMS1/sysman/log/ -name
"emctl.log.*" -mtime +7 -print|xargs rm
find /applications/oracle/OEM/OEM1/gc_inst/em/EMGC_OMS1/sysman/log/
-name "emoms_pbs.log.*" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/gc_inst/em/EMGC_OMS1/sysman/log/ -name
"emoms_pbs.trc.*" -mtime +2 -print|xargs rm
find /applications/oracle/OEM/OEM1/gc_inst/em/EMGC_OMS1/sysman/log/
-name "emoms.log.*" -mtime +2 -print|xargs rm
2) Oracle WebLogic
*****************************
find
/applications/oracle/OEM/OEM1/gc_inst/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs/
-name "access.log*" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/gc_inst/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs/
-name "EMGC_OMS1.log*" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/gc_inst/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs/
-name "EMGC_OMS1.out*" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/gc_inst/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs/
-name "EMGC_OMS1-diagnostic*.log" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/gc_inst/user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/logs
-name "EMGC_ADMINSERVER.out*" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/gc_inst/user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/logs
-name "EMGC_ADMINSERVER.log*" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/gc_inst/user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/logs
-name "GCDomain.log*" -mtime +2 -print|xargs rm
3) Oracle HTTP Server (OHS)
*****************************
find /applications/oracle/OEM/OEM1/gc_inst/user_projects/domains/GCDomain/servers/ohs1/logs/
-name "admin_log*" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/gc_inst/user_projects/domains/GCDomain/servers/ohs1/logs/
-name "access_log*" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/gc_inst/user_projects/domains/GCDomain/servers/ohs1/logs/
-name "em_upload_https_access_log*" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/gc_inst/user_projects/domains/GCDomain/servers/ohs1/logs/
-name "ohs1-*.log" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/gc_inst/user_projects/domains/GCDomain/servers/ohs1/logs/
-name "em_upload_http_access_log*" -mtime +2 -print|xargs rm
4) 12c Agent log file
*******************************
find /applications/oracle/OEM/OEM1/agent/agent_inst/sysman/log/
-name "gcagent.log*" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/agent/agent_inst/sysman/log/ -name
"gcagent_sdk.trc*" -mtime +2 -print|xargs rm
find /applications/oracle/OEM/OEM1/agent/agent_inst/sysman/log/
-name "emdctlj.log*" -mtime +2 -print|xargs rm
find
/applications/oracle/OEM/OEM1/agent/agent_inst/sysman/log/ -name
"gcagent_errors.log*" -mtime +2 -print|xargs rm
No comments:
Post a Comment