An TNS-01251 error was reported when attempting to change the name of the listening log:
$ lsnrctl Lsnrctl forLinux:version11.2.0.4.0-Production on --jun- - -:Wuyi: ,Copyright (c)1991, -, Oracle. All rights reserved. Welcome to Lsnrctl, type" Help" forinformation. Lsnrctl>Setlog_file Parameter Value:listener_test.logConnecting to (ADDRESS= (protocol=tcp) (host=) (port=1521) TNS-01251: CannotSettrace/log directory under Adrlsnrctl>
Reason:
ADR features were introduced in Oracle 11g.
If the parameter diag_adr_enabled_listenername is set to on in the Listener.ora file, the settings for the parameter log_directory are ignored. Trace files and log files are created under the path specified by Adr_base_listener_name. The BASE directory where the trace and log files are stored can be specified by the parameter adr_base_listener_name parameter.
You can also cancel the ADR feature by setting it in Listener.ora:
Diag_adr_enabled_listener_name== </path/.../>
Tns-01251:cannot set Trace/log directory under ADR