Tuesday, July 24, 2018

Commands to find and Remove old logs from Oracle RAC environment (reclaim filesystem space)



cd $ORACLE_BASE  or $GRID_BASE

find . -name "evmlog.*" -mtime +15 -exec rm -f  {} \;

find . -name "+ASM*.trc*" -mtime +15 -exec ls -ltr  {} \;
find . -name "evmlog.*" -mtime +15 -exec rm  -f {} \;

find . -name "*.xml" -mtime +10 -exec ls -ltr  {} \;

find . -name "ora_*.trc*" -mtime +15 -exec rm -f {} \;
find . -name "+ASM_ora*.aud*" -mtime +15 -exec rm -f{} \;


Command to list files by their size :

ls -l | sort -k 5 -rn

No comments: