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: Peter van Rijn <p.vanrijnREMOVE_at_THISzhew.nl>
Date: Thu, 12 Dec 2002 11:33:34 +0100
Message-ID: <uvgpg8sqd3vp03@corp.supernews.com>


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

If you rename the file the listener will continue to write to the renamed file! After renaming the file it still has the same inode number, and that's why the file is still being written to.

If you delete the file the listener still uses its file handle to the inode, but since the file has gone you will not be able to see it.

If you do something like "echo >" or "cat /dev/null >" or similar actions the contents of the file are altered (i.e. made empty), but since it still has the same inode number the listener can still visibly write to this file.

hth,
Peter Received on Thu Dec 12 2002 - 04:33:34 CST

Original text of this message

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