RE: truncating listener.log on Windows

  • From: "Powell, Mark" <mark.powell2@xxxxxx>
  • To: "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
  • Date: Wed, 27 Jul 2011 17:49:53 +0100

 
Why not just turn off logging, delete or reduce the file size, and then 
re-start logging?

set log_status off


-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of Schauss, Peter (ESS)
Sent: Tuesday, July 26, 2011 4:40 PM
To: oracle-l@xxxxxxxxxxxxx
Subject: truncating listener.log on Windows

Oracle 10.2.0.3.0 on Windows Server 2003 sp2.

How do you truncate the listener log file without bouncing the listener?

I know how to do this on UNIX, but when I try "echo > listener.log"  I get 
"cannot access the file because it is being used by another process".  The 
other option, appears to be to use the lsnrctl "set log" command followed by 
"save config", but, according to MOS, this may crash the listener.

Any other options?

Thanks,
Peter Schauss
--
//www.freelists.org/webpage/oracle-l


--
//www.freelists.org/webpage/oracle-l


Other related posts: