Call (800) 766-1884 for Oracle support & training
Free Oracle Tips

Oracle Consulting Support
Oracle Upgrades
Use New Oracle Features
Oracle Replication Support
Oracle Training
Remote Oracle DBA
System Documentation
Oracle Tips
Oracle Performance

Free Oracle Tips



BC Oracle tuning

Oracle training

Oracle support

Remote Oracle




Oracle Tips by Burleson Consulting

Remove elderly Oracle trace, core and dump files

Part of the job of the Oracle DBA on a UNIX server is to e-mail current trace and core dump files to Oracle support and e-mail application trace and dump files to code developers. Once problems have been resolved, the DBA must remove unwanted files from the Oracle UNIX filesystem. These un-wanted files may include:

* Trace files – Trace files become obsolete as soon as they have been mailed to the developer staff.
* Core files – Core files may be removed as soon as Oracle support has received copies of the dump.
* Audit files – Audit files are a nuisance that many DBAs remove every day.

Below is a script that will automatically remove all trace files from the background_dump_destination filesystem in UNIX.

# Cleanup trace files more than 7 days old

root> find $DBA/$ORACLE_SID/bdump/*.trc -mtime +7 -exec rm {} \;
root> find $DBA/$ORACLE_SID/udump/*.trc -mtime +7 -exec rm {} \;
root> find $DBA/$ORACLE_SID/cdump/*.trc -mtime +7 -exec rm {} \;
Note that the first part of this script (before the –exec) displays all trace files that are more than 7 days old.
root> find $DBA/$ORACLE_SID/bdump/*.trc -mtime +7


The above is an excerpt from the "Oracle UNIX Administration Handbook" by Oracle press, authored by Donald K. Burleson.


Download your Oracle scripts now:

The definitive Oracle Script collection for every Oracle professional DBA




Oracle performance tuning software 

Oracle performance tuning book


Oracle performance Tuning 10g reference poster
Oracle training in Linux commands
Oracle training Excel
Oracle training & performance tuning books



Copyright © 1996 -  2014 by Burleson. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation. 

Hit Counter