Oracle admin directory is filling up with trace files (Legacy KB ID CNC TS22819 )

Document ID : KB000051935
Last Modified Date : 14/02/2018
Show Technical Document Details
Normally there are many Oracle trace files existed in $ORACLE_HOME/admin/*dump/EHEALTH in the ehealth application, where '*dump' stands for udump, bdump and cdump. The cdump is one of the background file destinations for your Oracle instance. Generally, cdump stores the core dumps created by other Oracle errors. You would notice that Oracle creates a directory within cdump and puts the core file in that subdirectory. There will be a corresponding trace file in either bdump or udump (check the number within the name of the file and the timestamp for correlation). Usually, although not always, cdumps are caused by internal Oracle errors. sending  In any case, it does not hurt the database to delete these files.

Below is a script that can be used to remove all trace files in UNIX. run the command as $NH_USER, you can run the command when the Oracle and ehealth are running.

# remove trace files that are more than 30 days old

find $ORACLE_HOME/admin/bdump/EHEALTH/*.trc -mtime +30 -exec rm {} \;
find $ORACLE_HOME/admin/bdump/EHEALTH/*.trc -mtime +30 -exec rm {} \;
find $ORACLE_HOME/admin/bdump/EHEALTH/*.trc -mtime +30 -exec rm {} \;

Note that the first part of this script (before the ?exec) displays all trace files that are more than 30 days old, for example, run the following to find out how many files will be removed before actually remove them.

find $ORACLE_HOME/admin/bdump/EHEALTH/*.trc -mtime +30

If you wanted to remove the trace files that are seven days old, you run the same command but replace 30 with 7.

Related Issues/Questions:
Oracle admin directory is filling up with trace files
Trace files (*.trc) taking up diskspace
will deleting this files affect the database

Problem Environment:
eHealth 5.7

(Legacy KB ID CNC TS22819 )