Oracle Trace file (.trc) & Trace map (.trm) cleanup


To clean up old Oracle trace file (.trc) and trace map (.trm) files, use this command on UNIX based system:

find /oracle/diag/rdbms/ssekdb/ssekdb/trace/*.trc -mtime +14 -exec rm {} \;
find /oracle/diag/rdbms/ssekdb/ssekdb/trace/*.trm -mtime +14 -exec rm {} \;

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

3 responses to “Oracle Trace file (.trc) & Trace map (.trm) cleanup”

  1. someone says :

    Ini kyknya buat Oracle 11g.. kalo Oracle 9 & 10 kan masih pake bdump,udump,dkk hehe…

  2. Nestor says :

    Muchas gracias!

  3. Bob says :

    I feel like I’ve missed some serious nuggets of wisdom being uni-lingual. Sad.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: