Want to post your scripts here in this blog ? Email it to snojha@gmail.com. You will be rewarded for your scripts if selected by our experts.

Wednesday, May 20, 2009

Truncating Listener Log File

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

$cat /dev/null > $ORACLE_HOME/network/log/listener.log

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

No comments: