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: Eve Hoellwarth <hoellwarth-e_at_gmx.at>
Date: Sun, 15 Dec 2002 10:18:25 GMT
Message-ID: <s3kovukntf4mon5tekrq2cgfrpmudop32s@4ax.com>


Michael Raschepkin <rm_at_DELETE.IT.artelecom.ru> wrote

>Alexander Moeckel wrote:

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

>thanks a lot.
>
>it's very strange because alert<SID>.log is filled ok when recreated.

listener.log has nothing to do with alert.log. So you won't see entries in alert.log when there are troubles with your listener. To copy the listener logfile as Alex described above is one good solution. If there is not enough space left in your Oracle_Home to do a copy of the old listener logfile you can do this to make sure the old inode will be used further and the last entries in your old listener.log are stored:

 tail -100 listener.log > listener.log_old  > listener.log

regards
Eve Received on Sun Dec 15 2002 - 04:18:25 CST

Original text of this message

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