Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: rotating listener.log

Re: rotating listener.log

From: Alexander Moeckel <amoeckel_at_192.168.160.1>
Date: Thu, 12 Dec 2002 11:19:35 +0100
Message-ID: <at9nqu$hrl$1@innferno.news.tiscali.de>


Hello,
with HP-UX I use a shell script:
cp listener.log listener_`date +%Y%m%d_%H%M`.log echo "" > listener.log

Oracle has problems, if the logfile is deleted or renamed. No new file will be created before you restart the listener or instance. With the echo the content of the file will be deleted, not the file himself.

Alex

Michael Raschepkin wrote:
> Hello
>
> I have Oracle 8.0.5, Solaris7.
> What utility could you advise me to rotate the listener's log file?
> I used newsyslog, it renamed the file to listener.log.1, created new
> listener.log, but listener didnot write there until I restarted it.
>
> --
> ~~~~~~~~~~~~~~~
> With respect,
> Michael
> ~~~~~~~~~~~~~~~
>
>
Received on Thu Dec 12 2002 - 04:19:35 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US