Re: truncating listener.log on Windows

From: Jay Hostetter <hostetter.jay_at_gmail.com>
Date: Tue, 26 Jul 2011 16:47:12 -0400
Message-ID: <CAD7fdYvGRMHtk44VNuXk_o3-KtM6tC8zoN75SbMYX7FOVd0JwQ_at_mail.gmail.com>



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_at_ngc.com
> 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
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Jul 26 2011 - 15:47:12 CDT

Original text of this message