Make a copy of the file appended by the Julian date then empty the log via
cat /dev/null > listener.log. (You don't really need a cat.)
-Original Message-
Sent: Wednesday, July 24, 2002 9:50 AM
To: Multiple recipients of list ORACLE-L
Could anyone share their Unix script to age the lis
I posted this answer once before.
How about wrapping this is a script of your choice:
ARCHIVE_LISTENER_FILENAME=listener`date +%Y%m%d%H%M`.log
lsnrctl set log_file listener2.log
mv listener.log $ARCHIVE_LISTENER_FILENAME
mv listener2.log listener.l
Why is it necessary to null out the file? Does LSNR keep a open file handle
open to it?
> -Original Message-
> From: Orr, Steve [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 12:25 PM
> To: Multiple recipients of list ORACLE-L
> Subject: RE: Listener L
> > From: Orr, Steve [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 24, 2002 12:25 PM
> > To: Multiple recipients of list ORACLE-L
> > Subject: RE: Listener Log Aging Script
> >
> > Make a copy of the file appended by the Julian date then empty the log
ted otherwise.
Erik Williams <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
24-07-2002 09:43 AM
Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc:
Fax to:
Subject: RE: Listener Log Aging Script
Wh
ull out the file? Does LSNR keep a open file handle
open to it?
> -Original Message-
> From: Orr, Steve [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 12:25 PM
> To: Multiple recipients of list ORACLE-L
> Subject: RE: Listener Log Aging Script
>
> Mak