Move listener log to another filesystem

Run lsnrctl command to change listener’s settings:
[db000oracle@]/app/oracle/listener/log > lsnrctl
Set the listener interested:
LSNRCTL> set current_listener LSNR_[db_name]
Current Listener is LSNR_[db_name]
LSNRCTL> show log_status
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=BSCS))
LSNR_[db_name] parameter “log_status” set to ON The command completed successfully
Change log_status to off so you can move the associated log:
LSNRCTL> set log_status OFF
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=BSCS))
listener_[db_name] parameter “log_status” set to OFF
The command completed successfully
At this point, you may rename the file and move it to the new directory
mv listener_[db_name].log listener_[db_name].log_[date]
mv listener_[db_name].log_[date] /LSNR_LOG
Recreate the file you just renamed:
touch listener_[db_name].log
By now is possible to set log status in order to keep rievable listener’log
LSNRCTL> set current_listener LSNR_[db_name]
Current Listener is LSNR_[db_name]
LSNRCTL> set log_status ON
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=BSCS))
LSNR_[db_name] parameter “log_status” set to ON
The command completed successfully

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *