Tns-01251:cannot set Trace/log directory under ADR

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.