Professional Documents
Culture Documents
How To Truncate a Background Trace File Without Bouncing the Database [ID
564989.1]
In this Document
Goal
Solution
This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has
not been subject to an independent technical review.
Applies to:
Goal
This article outlines how to truncate a trace file generated by a background process without restarting the
database and without breaking the logging mechanism.
In the first place you should investigate why this tracing is being written. If it is due to an event setting then this
event needs to be disabled otherwise the tracing will just restart after the file has been truncated.
Solution
1. First identify the process id of the background process in question, in this example I will use LGWR
background process:
SQL> select pid, program from v$process where program like '%LGWR%';
PID PROGRAM
---------- ------------------------------------------------
6 oracle@besun21 (LGWR)
2. Secondly, use oradebug to set the orapid and therby attach to the background process
When the background process needs to write to the trace file again it will create a new logfile.
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=564989.1 13/08/2010
Page 2 of 2
Related
Products
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Back to top
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=564989.1 13/08/2010