Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: stopiing write to listener.log
You can try something like this:
ORACLE_HOME=/u000/app/oracle/product/8.1.7; export ORACLE_HOME
PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/etc; export PATH
CURR_DATE=`date +%Y%m%d`
$ORACLE_HOME/bin/lsnrctl set log_file $ORACLE_HOME/network/log/listener.log.2
mv $ORACLE_HOME/network/log/listener.log $ORACLE_HOME/network/log/listener.log.1
$ORACLE_HOME/bin/lsnrctl set log_file $ORACLE_HOME/network/log/listener.log
grep -v service_update ${ORACLE_HOME}/network/log/listener.log.1 > ${ORACLE_HOME}/network/log/lstnr.log.$CURR_DATE
grep -v service_update ${ORACLE_HOME}/network/log/listener.log.2 >> ${ORACLE_HOME}/network/log/lstnr.log.$CURR_DATE
rm -f ${ORACLE_HOME}/network/log/listener.log.1
rm -f ${ORACLE_HOME}/network/log/listener.log.2
Alex. Received on Thu Feb 07 2002 - 19:27:28 CST