Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: rotating 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.
>
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