Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Perl DBA Tools
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.logmv listener.log
$ARCHIVE_LISTENER_FILENAMEmv listener2.log listener.loglsnrctl set
log_file listener.loggzip $ARCHIVE_LISTENER_FILENAME
This way, you don't have to stop the listener and you don't loose
anything. Remember, in Unix, when you rename a file, any program that has
it open still points to it.
Regards,
John
>>> jkstill_at_cybcon.com 04/24/01 10:20AM >>>On
Tuesday 24 April 2001 06:15, Rachel Carmichael wrote:> truncating
listener logs -- or even starting a secondary listener, stopping> the one
with the log that is too large and removing the log, then> restarting the
original listener....>Good idea. Thanks
RachelJared-- Please see the official ORACLE-L FAQ: <A
href="http://www.orafaq.com">http://www.orafaq.com-- Author: Jared
Still INET: jkstill_at_cybcon.comFat City Network
Services -- (858) 538-5051 FAX: (858) 538-5051San
Diego, California -- Public Internet
access / Mailing
Lists--------------------------------------------------------------------ToREMOVE yourself from this mailing list, send an E-Mail messageto: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to be removed from). You mayalso send the HELP command for other information (like subscribing). Received on Tue Apr 24 2001 - 13:35:04 CDT
![]() |
![]() |