Pages

Thursday, April 9, 2020

Removing Tracefiles In Oracle

Removing  Tracefiles In Oracle


root@rac2 trace]# ls -ltrh *.trc |wc -l
403
root@rac2 trace]# ls -ltrh *.trm |wc -l
403

find *.trc -mtime +2 -exec rm {} \;
find *.trm -mtime +2 -exec rm {} \;

The above command will delete trace files and trace files which is older than 2 days.

root@rac2 trace]# ls -ltrh *.trc |wc -l
59
[root@rac2 trace]# ls -ltrh *.trm |wc -l
59

No comments:

Post a Comment