Oracle – listener.log file

Rename and compress listener.log file

[grid@server]$ lsnrctl
LSNRCTL> set current_listener listener
LSNRCTL> set log_status off
 
[grid@server]$ mv listener.log listener.log.temp
 
[grid@server]$ lsnrctl
LSNRCTL> set current_listener listener
LSNRCTL> set log_status on

-- compress (or delete) 
[grid@server]$ gzip listener.log.temp
[grid@server]$ lsnrctl
LSNRCTL> set current_listener ASMNET1LSNR_ASM
LSNRCTL> set log_status off
 
[grid@server]$ mv asmnet1lsnr_asm.log asmnet1lsnr_asm.log.temp
 
[grid@server]$ lsnrctl
LSNRCTL> set current_listener ASMNET1LSNR_ASM
LSNRCTL> set log_status on

-- compress (or delete) 
[grid@server]$ gzip asmnet1lsnr_asm.log.temp

Leave a Reply

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