Note for 11g and newer installations:
This procedure only works if ADR has been disabled in the listener.ora (addition of DIAG_ADR_ENABLED_listenername = OFF)
If ADR is enabled and the command in this document is executed, the error “TNS-01251: Cannot set trace/log directory under ADR” will be displayed
10gR2 and earlier instructions:
The listener.log filename can be changed via following methods
At the LSNRCTL prompt:
LSNRCTL>set current_listener <listener_name> LSNRCTL>set log_file <new filename>
And to save the change to the listener.ora file:
LSNRCTL>save_config
For example:
Example: To rename the listener.log to listener_1.log: LSNRCTL>set log_file listener_1.log LSNRCTL>save_config
This creates a new log called listener_1.log and posts an update to the listener.ora file so that the change is saved. The listener will continue to log events to listener_1.log until the log_file setting has been changed again.
Please be aware of the following issues with the save_config command in LSNRCTL:
Comments