Need help deleting trace files
I am new to Oracle RAC and I need to get rid of trace files since they are growing too big. I have one that is 22Gigs and I only have 60 Gigs available right now on that drive. I want to know if I can delete the file manually using the rm command.
My trace files are in: /u01/app/oracle/diag/rdbms/.../.../trace
The file I am concerned is called: "linux1_pz99_13299.trc" and "linux1_pz99_13299.trm"
I am using Oracle 220.127.116.11.0 on Oracle Unbreakable Linux.
Thanks for any help that can be provided.
Is that really going to work?
It is my understanding (supported by some inconclusive observations and experiments) that once a trace file grows beyond about 8 kilobytes Oracle will hang onto it in a death grip. You may delete it but Oracle will still have the file handle open and be writing to it.
If the database is running on a Windows platform then an equivalent script will not even give the illusion of deleting the file.
It used to be the case that switching trace file output to a different directory would cause Oracle to release the active trace files but now the trace directory is part of the ADR heirarchy so switching is a more global and more intrusive operation and could interfere with other diagnostics.
You may have to rely on ADRCI's "purge" command unless there is a PL/SQL equivalent.
I shall be very interested to see what others have to say.