当前位置:  数据库>oracle

TNS-01251: Cannot set trace/log directory under ADR

    来源: 互联网  发布时间:2017-06-13

    本文导语: 11204 RAC 环境报错 TNS-01251: Cannot set trace/log directory under ADR LSNRCTL> set current_listener listener Current Listener is listenerLSNRCTL> set current_listener listener Current Listener is listenerLSNRCTL> set trc_level 16Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))...

11204 RAC 环境报错 TNS-01251: Cannot set trace/log directory under ADR

LSNRCTL> set current_listener listener
Current Listener is listener
LSNRCTL> set current_listener listener
Current Listener is listener
LSNRCTL> set trc_level 16
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
listener parameter "trc_level" set to support
The command completed successfully
LSNRCTL> set trc_directory /home/Oracle
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
TNS-01251: Cannot set trace/log directory under ADR
LSNRCTL> set trc_directory /home/grid/trace
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
TNS-01251: Cannot set trace/log directory under ADR

 

解决办法:

 

确定监听器名称:

keeoradb001a:/home/grid$ps -ef | grep tns
    grid 12058650        1  1  Sep 02      - 128:13 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
    grid 14024914        1  0  Sep 02      - 32:48 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit

 

添加以下三行至监听器配置文件 :

keeoradb001a:/home/grid$lsnrctl status

LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production on 22-OCT-2014 08:50:16

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias                    LISTENER
Version                  TNSLSNR for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production
Start Date                02-SEP-2014 04:41:27
Uptime                    50 days 4 hr. 8 min. 49 sec
Trace Level              support
Security                  ON: Local OS Authentication
SNMP                      ON
Listener Parameter File  /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File        /u01/app/11.2.0/grid/network/log/listener.log

--------------------------------

DIAG_ADR_ENABLED_LISTENER=OFF
DIAG_ADR_ENABLED_LISTENER_SCAN1=OFF
LOG_DIRECTORY_listener_name = /home/grid/trace

--------------------------------

 

keeoradb001a:/home/grid$lsnrctl reload

LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production on 22-OCT-2014 08:51:15

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
The command completed successfully

 

LSNRCTL> set current_listener listener
Current Listener is listener
LSNRCTL> set current_listener listener
LSNRCTL> set trc_level 16
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
listener parameter "trc_level" set to support
The command completed successfully
LSNRCTL>  set trc_directory /home/oracle           


    
 
 

您可能感兴趣的文章:

 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • oracle远程连接服务器出现 ORA-12170 TNS:连接超时 解决办法
  • 基于ORA-12170 TNS 连接超时解决办法详解
  • 手动执行应用程序ok,但用crontab(在正确的用户名下)运行应用程序就报-12545(tns连接错误),怎么解决?
  • 在客户端配置TNS测试报错ORA-12170:TNS:连接超时
  • oracle数据库tns配置方法详解
  • Oracle数据库TNS常见错误的解决方法汇总


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,