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: Rename alert log

Re: Rename alert log

From: Satish Iyer <Satish.Iyer_at_ci.seattle.wa.us>
Date: Tue, 10 Jul 2001 11:31:37 -0700
Message-ID: <F001.003461D2.20010710114723@fatcity.com>

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_at_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_at_kmg.com>>Reply-To: ORACLE-L_at_fatcity.com>To: Multiple recipients of list ORACLE-L
<ORACLE-L_at_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_at_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_at_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_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 Jul 10 2001 - 13:31:37 CDT

Original text of this message

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