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
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
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 Log Aging Script
Make
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
via
cat /dev/null listener.log. (You don't really need a cat.)
-Original Message
.
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
Why is it necessary to null out
? 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
Make a copy of the file appended by the Julian