From Satish.Iyer@ci.seattle.wa.us Tue, 10 Jul 2001 11:31:37 -0700
From: "Satish Iyer" <Satish.Iyer@ci.seattle.wa.us>
Date: Tue, 10 Jul 2001 11:31:37 -0700
Subject: Re: Rename alert log
Message-ID: <F001.003461D2.20010710114723@fatcity.com>
MIME-Version: 1.0
Content-Type: text/plain



For the listener I had do the following to get listener 
to archive its old logs
lsnrctl set log_file 
$ORACLE_HOME/network/log/listener1.log        
mv      $ORACLE_HOME/network/log/listener.log  
$ORACLE_HOME/network/log/listener.log.$QUALIFIER        
lsnrctl set log_file $ORACLE_HOME/network/log/listener.log
 
But for alert.log it works fine with a simple mv
 
mv      
$ORACLE_BASE/admin/$SID/bdump/alert_$SID.log 
\                
$ORACLE_BASE/admin/$SID/bdump/alert_$SID.log.$QUALIFIER
 
We are on 8.1.5.
 
Satish>>> carmichr@hotmail.com 07/10/01 10:26AM 
>>>depends on the version of the database you are running.. it used 
to be that yes, you could just rename it and Oracle would open a new one of 
the original name when it needed to write to it.In 8.? and above, 
you can no longer just rename it, Oracle now maintains an open file pointer 
to it, similar to the way it handles the listener log file. So you will need 
to do the same sort of tricks to the alert log as you have to do to the 
listener log (make a copy then copy /dev/null to the 
original)>From: "Smith, Ron L." 
<rlsmith@kmg.com>>Reply-To: ORACLE-L@fatcity.com>To: 
Multiple recipients of list ORACLE-L 
<ORACLE-L@fatcity.com>>Subject: Rename alert log>Date: Tue, 
10 Jul 2001 06:56:31 -0800>>Can the alert log be renamed while the 
database is up and running?>>Ron>-->Please see the 
official ORACLE-L FAQ: <A 
href="http://www.orafaq.com">http://www.orafaq.com>-->Author: 
Smith, Ron L.>   INET: rlsmith@kmg.com>>Fat City 
Network Services    -- (858) 538-5051  FAX: (858) 
538-5051>San Diego, California        
-- Public Internet access / Mailing 
Lists>-------------------------------------------------------------------->To 
REMOVE yourself from this mailing list, send an E-Mail message>to: 
ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in>the 
message BODY, include a line containing: UNSUB ORACLE-L>(or the name of 
mailing list you want to be removed from).  You may>also send the 
HELP command for other information (like 
subscribing)._________________________________________________________________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: Rachel 
Carmichael  INET: carmichr@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@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).



