zoukankan      html  css  js  c++  java
  • 配置11g rac监听由于环境变量报错

    测试环境11.2.0.4 添加一个1522静态监听配置

    grid$srvctl add listener -l dg_lis -o /picclife/app/11.2.0/grid -p 1522

    rac2:/picclife/app/11.2.0/grid/network/admin$ srvctl start listener -l dg_lis
    PRCR-1079 : Failed to start resource ora.DG_LIS.lsnr
    CRS-5016: Process "/picclife/app/11.2.0/grid/bin/lsnrctl" spawned by agent
    "/picclife/app/11.2.0/grid/bin/oraagent.bin" for action "start" failed: details at "(:CLSN00010:)"
    in "/picclife/app/11.2.0/grid/log/rac1/agent/crsd/oraagent_grid//oraagent_grid.log" CRS-5016: Process "/picclife/app/11.2.0/grid/bin/lsnrctl" spawned by agent
    "/picclife/app/11.2.0/grid/bin/oraagent.bin" for action "start" failed: details at "(:CLSN00010:)"
    in "/picclife/app/11.2.0/grid/log/rac2/agent/crsd/oraagent_grid//oraagent_grid.log" CRS-5016: Process "/picclife/app/11.2.0/grid/bin/lsnrctl" spawned by agent
    "/picclife/app/11.2.0/grid/bin/oraagent.bin" for action "start" failed: details at "(:CLSN00010:)"
    in "/picclife/app/11.2.0/grid/log/rac1/agent/crsd/oraagent_grid//oraagent_grid.log" CRS-5016: Process "/picclife/app/11.2.0/grid/bin/lsnrctl" spawned by agent
    "/picclife/app/11.2.0/grid/bin/oraagent.bin" for action "start" failed: details at "(:CLSN00010:)"
    in "/picclife/app/11.2.0/grid/log/rac2/agent/crsd/oraagent_grid//oraagent_grid.log" CRS-2674: Start of 'ora.DG_LIS.lsnr' on 'rac1' failed CRS-2674: Start of 'ora.DG_LIS.lsnr' on 'rac2' failed 添加后启动报错 $cat /picclife/app/11.2.0/grid/log/rac2/agent/crsd/oraagent_grid//oraagent_grid.log ······ 2020-03-11 17:50:02.579: [ora.DG_LIS.lsnr][1113667904]{2:25523:390} [start] clsnUtils::error Exception type=2 string= CRS-5016: Process "/picclife/app/11.2.0/grid/bin/lsnrctl" spawned by agent "/picclife/app/11.2.0/grid/bin/oraagent.bin"
    for action "start" failed: details at "(:CLSN00010:)" in
    "/picclife/app/11.2.0/grid/log/rac2/agent/crsd/oraagent_grid//oraagent_grid.log" ······ 手工执行命令 rac2:/picclife/app/11.2.0/grid/network/admin$ /picclife/app/11.2.0/grid/bin/oraagent.bin /picclife/app/11.2.0/grid/bin/oraagent.bin: error while loading shared libraries: libocr11.so:
    cannot open shared object file: No such file or directory ls -l /picclife/app/11.2.0/grid/lib/libocr11.so -rw-r--r-- 1 root oinstall 1616557 Dec 14 2015 /picclife/app/11.2.0/grid/lib/libocr11.so $ echo $LD_LIBRARY_PATH Null 环境变量添加配置信息 export LD_LIBRARY_PATH=$GRID_HOME/lib $ echo $LD_LIBRARY_PATH /picclife/app/11.2.0/grid/lib: rac2:/picclife/app/grid$ /picclife/app/11.2.0/grid/bin/oraagent.bin Segmentation fault $ srvctl start listener -l dg_lis 本次还是启动失败 2020-03-11 17:50:02.576: [ora.DG_LIS.lsnr][1113667904]{2:25523:390} [start]
    (:CLSN00010:)Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=DG_LIS))) 2020-03-11 17:50:02.576: [ora.DG_LIS.lsnr][1113667904]{2:25523:390} [start] (:CLSN00010:) 2020-03-11 17:50:02.576: [ora.DG_LIS.lsnr][1113667904]{2:25523:390} [start]
    (:CLSN00010:)TNS-01155: Incorrectly specified SID_LIST_DG_LIS parameter in LISTENER.ORA 2020-03-11 17:50:02.576: [ora.DG_LIS.lsnr][1113667904]{2:25523:390} [start] (:CLSN00010:) NL-00303: syntax error in NV string 2020-03-11 17:50:02.576: [ora.DG_LIS.lsnr][1113667904]{2:25523:390} [start] (:CLSN00010:) 2020-03-11 17:50:02.576: [ora.DG_LIS.lsnr][1113667904]{2:25523:390} [start]
    (:CLSN00010:)Listener failed to start. See the error message(s) above... Listener Errors TNS
    -01155 and NL-00303 Using Oracle Gateways (Doc ID 1094374.1) 删除静态监听文件配置信息,再次启动监听正常。 再次编辑静态监听配置文件。

    上面是只是成功的在集群层面添加了一个1522端口监听配置信息,但是配置静态监听未成功。

       再次配置发现lsnrctl status 都报如下错误!  百度MOS未找到相关资料信息,测试环境打了补丁之后出现的问题,通过在Grid环境变量添加ORACLE_HOME环境变量解决问题。

    $ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 11-MAR-2020 23:56:53
    
    Copyright (c) 1991, 2013, Oracle.  All rights reserved.
    
    Message 1053 not found; No message file for product=network, facility=TNSMessage 1020 not found; 
    No message file for product=network, facility=TNSMessage 1021 not found; No message file for product=network,
    facility=TNSMessage 1022 not found; No message file for product=network, facility=TNSMessage 1023 not found;
    No message file for product=network, facility=TNSMessage 1026 not found; No message file for product=network,

    No message file for product=network, facility=TNS Message 1050 not found; No message file for product=network, facility=TNS Message 1050 not found; No message file for product=network, facility=TNS Message 1029 not found; No message file for product=network, facility=TNSMessage 1411 not found;
    No message file for product=network, facility=TNS Message 1408 not found; No message file for product=network, facility=TNS

    再次回到静态监听文件配置

    grid$ srvctl remove listener -l dg_lis

    $srvctl add listener -l dg_lis -o /picclife/app/11.2.0/grid -p 1522

     $ srvctl start listener -l dg_lis

    $ lsnrctl status dg_lis

    TNS-01101: Could not find service name dg_lis
    环境变量问题,添加
    export TNS_ADMIN=/picclife/app/11.2.0/grid/network/admin
    SID_LIST_DG_LIS= (SID_LIST = (SID_DESC = (SID_NAME=ttn1) (ORACLE_HOME=/picclife/app/oracle/product/11.2.0/db_1) (GLOBAL_DBNAME=tt11204) ) ) $ srvctl stop listener -l dg_lis srvctl start listener -l dg_lis
  • 相关阅读:
    多按键设计的标准思路
    与,非,或门总结
    i2c中应答信号信号总结
    i2c中start和restart的区别
    poj 1631 Bridging signals
    poj 2533 Longest Ordered Subsequence
    poj 1887 Testing the CATCHER
    poj 1088 滑雪
    poj 1014 Dividing
    babel转码时generator的regeneratorRuntime
  • 原文地址:https://www.cnblogs.com/lvcha001/p/12463632.html
Copyright © 2011-2022 走看看