Nitesh Kumar
Nitesh Kumar

Reputation: 885

Effect Of deleting trace files?

I have an oracle 11G instance. Its trace file are increasing day by day and causing a disk space issue. I have to delete it manually on every disk space alert. I use the command:

**find \`pwd\` \\( -name \\*.trc -o -name \\*.trm \\) -mtime +2 -exec rm -rf {} \;**

I can schedule this also in cronjob, but I want to know what it will effect in deleting these files and why these files are increasing so much in size. How can I reduce these file by increasing and what will this effect in our database?

Upvotes: 2

Views: 20640

Answers (1)

Justin Cave
Justin Cave

Reputation: 231781

Why is the database generating a bunch of trace files? A trace file would either indicate an error, in which case you would generally need to examine the trace file to determine what the error is and how to correct it, or it would indicate that someone enabled tracing for a session in order to debug an issue, in which case you would want to retain the trace file so that you can do that debugging. Deleting trace files without looking at them means that you are almost certainly ignoring a symptom of a problem that has the potential to get worse over time. If this is a real production database rather than a toy database on your local machine, I would strongly suggest determining why the trace files are getting created in the first place and addressing whatever issue(s) are causing the trace files to be created.

Upvotes: 4

Related Questions