Re: truncating listener.log on Windows

  • From: Jay Hostetter <hostetter.jay@xxxxxxxxx>
  • To: peter.schauss@xxxxxxx
  • Date: Tue, 26 Jul 2011 16:47:12 -0400

I use "set log_file", but I don't save the config.

lsnrctl
>set log_file listener_temp.log

then I rename listener.log to something else (listener_20110725.log)

>set log_file listener.log

If you have admin restrictions on, you'll need to change the listener.ora
and reload it first.

Jay

On Tue, Jul 26, 2011 at 4:40 PM, Schauss, Peter (ESS) <peter.schauss@xxxxxxx
> wrote:

> 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
>
>
>

Other related posts: