how to archive the listener log for oracle database

sometimes,after long time running of database,the listener log became large and inconvenient  to locate the error msg in large text file, so it’s necessary to archive the listener log. follow the step.

on win platform:

lsnrctl set log_status off // to stop log msg to listener log file

rename the listener.log

lsnrctl set log_status on// to start the log msg to listener.log

 

on unix or linux platform:

echo “123” > listener.log

–EOF–