Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Listener.log

RE: Listener.log

From: John Carlson <jcarlson_at_CJ.COM>
Date: Tue, 24 Apr 2001 16:16:30 -0700
Message-ID: <F001.002F178D.20010424154520@fatcity.com>

For those of you who did not see my response in the thread of "Perl DBA Tools" I will repeat it here, it answers this thread as well.  Also, there is no need to shutdown the database to bounce the listener.
 

How about wrapping this in 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>>> oracledbam_at_hotmail.com 04/24/01 02:28PM
>>>You can shutdown/start the Database and start listener would
solve ur problem.-Seema>From: "Adams, Matthew (GEA, 088130)" <MATT.ADAMS_at_APPL.GE.COM>>Reply-To: ORACLE-L_at_fatcity.com>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>>Subject: RE: Listener.log>Date: Tue, 24 Apr 2001 11:16:49 -0800>>No, you do not have to restart the listener.>touch the listener.log file (we do a 'cp /dev/null>$ORACLE_HOME/network/log/listener.log)>and the listener will start writing to it again.>>>---->R. Matt Adams  - GE Appliances - matt.adams_at_appl.ge.com>   Meddle not in the affairs of troff,>   for it is subtle and quick to anger.>>>>>>-----Original
Message----->Sent: Tuesday, April 24, 2001 12:28 PM>To: Multiple recipients of list ORACLE-L>>>Hello,>You have to restart your listener. It continues to write to "invisible"
>file>(inode without any reference from directories). Welcome to
UNIX.>HTH>Vadim Gorbounov>Oracle
DBA>>>-----Original Message----->Sent: Tuesday, April 24, 2001 11:47 AM>To: Multiple recipients of list ORACLE-L>>>Hello everyone,>>After moving the listener.log and compressed, there is no more log for the>listener. Could anyone help me please ?

Thanks.>>Nguyen>_________________________________________________________________Get 
your FREE download of MSN Explorer at <A href="http://explorer.msn.com">http://explorer.msn.com-- Please see the official ORACLE-L FAQ: <A
href="http://www.orafaq.com">http://www.orafaq.com-- Author: Seema Singh  INET: oracledbam_at_hotmail.comFat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051San Diego, California        -- Public Internet access / Mailing
Lists--------------------------------------------------------------------To 
REMOVE 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 - 18:16:30 CDT

Original text of this message

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