Managing Listener Log Files

posted Sep 8, 2010, 7:14 AM by Sachchida Ojha

Recycle Listener Log File

Listener configuration, stored in the listener.ora file, consists of the following elements:

1) Listener's name

2) Protocol addresses that it is accepting connection requests on

3) Services it is listening for

4) Control parameters

By default, the listener.ora file is located in the $ORACLE_HOME/network/admin directory on UNIX operating systems and the ORACLE_HOME\network\admin directory on Windows NT.

Step 1:

$cp $ORACLE_HOME/network/log/listener.log $ORACLE_HOME/network/log/listener.log_`date +"%Y%m%d"`

Step 2:
$cat /dev/null > $ORACLE_HOME/network/log/listener.log

Step 3:
$nohup compress $ORACLE_HOME/network/log/listener.log_`date +"%Y%m%d"` &