I find this particularly useful when I want to clear down trace files that have been building up over time. To do this I would move to the oracle bdump directory, then execute the following command line code:
$ find *.trc -mtime +7 -exec rm {} \;The above code will remove all trace files in the current directory that are older than 7 days.Code breakdown
find <filename> -mtime +<number of days> -exec <command> \;Find <filename> - finds the files specified by the filename-mtime +<number of days> - days older than current system date-exec <command> - command to execute with found files
No comments:
Post a Comment
Please feel free to leave a comment