• oracle RAC 集群无法启动


    RDBMS 11.2.0.4

    节点1无法启动,节点2 启动正常。

    节点1的集群状态一直这样

    1. [grid@ractest1 admin]$ crsctl check crs
    2. CRS-4638: Oracle High Availability Services is online
    3. CRS-4535: Cannot communicate with Cluster Ready Services
    4. CRS-4529: Cluster Synchronization Services is online
    5. CRS-4534: Cannot communicate with Event Manager

    但是节点2的集群状态是正常的。重启节点1和节点2 ,问题依旧。

    在关闭节点1的集群的时候,提示没有集群,加参数 -f后强制可以关闭。

    查看节点1的相关log :

    1. 2022-06-24 00:05:30.584:
    2. [/u01/app/grid/bin/oraagent.bin(23516)]CRS-5011:Check of resource "+ASM" failed: details at "(:CLSN00006:)" in "/u01/app/grid/log/ractest1/agent/ohasd/oraagent_grid/oraagent_grid.log"
    3. 2022-06-24 00:05:35.813:
    4. [/u01/app/grid/bin/oraagent.bin(23516)]CRS-5011:Check of resource "+ASM" failed: details at "(:CLSN00006:)" in "/u01/app/grid/log/ractest1/agent/ohasd/oraagent_grid/oraagent_grid.log"
    5. 2022-06-24 00:05:41.031:
    6. [/u01/app/grid/bin/oraagent.bin(23516)]CRS-5011:Check of resource "+ASM" failed: details at "(:CLSN00006:)" in "/u01/app/grid/log/ractest1/agent/ohasd/oraagent_grid/oraagent_grid.log"
    7. 2022-06-24 00:05:41.244:
    8. [/u01/app/grid/bin/oraagent.bin(23516)]CRS-5011:Check of resource "+ASM" failed: details at "(:CLSN00006:)" in "/u01/app/grid/log/ractest1/agent/ohasd/oraagent_grid/oraagent_grid.log"
    9. 2022-06-24 00:05:46.470:
    10. [/u01/app/grid/bin/oraagent.bin(23516)]CRS-5011:Check of resource "+ASM" failed: details at "(:CLSN00006:)" in "/u01/app/grid/log/ractest1/agent/ohasd/oraagent_grid/oraagent_grid.log"
    11. 2022-06-24 00:05:51.645:
    12. [/u01/app/grid/bin/oraagent.bin(23516)]CRS-5011:Check of resource "+ASM" failed: details at "(:CLSN00006:)" in "/u01/app/grid/log/ractest1/agent/ohasd/oraagent_grid/oraagent_grid.log"
    13. 2022-06-24 00:05:56.871:
    14. [/u01/app/grid/bin/oraagent.bin(23516)]CRS-5011:Check of resource "+ASM" failed: details at "(:CLSN00006:)" in "/u01/app/grid/log/ractest1/agent/ohasd/oraagent_grid/oraagent_grid.log"
    15. 2022-06-24 00:06:02.084:
    16. [/u01/app/grid/bin/oraagent.bin(23516)]CRS-5011:Check of resource "+ASM" failed: details at "(:CLSN00006:)" in "/u01/app/grid/log/ractest1/agent/ohasd/oraagent_grid/oraagent_grid.log"
    17. 2022-06-24 00:06:02.294:
    18. [/u01/app/grid/bin/oraagent.bin(23516)]CRS-5011:Check of resource "+ASM" failed: details at "(:CLSN00006:)" in "/u01/app/grid/log/ractest1/agent/ohasd/oraagent_grid/oraagent_grid.log"
    19. 2022-06-24 00:06:07.516:
    20. [/u01/app/grid/bin/oraagent.bin(23516)]CRS-5011:Check of resource "+ASM" failed: details at "(:CLSN00006:)" in "/u01/app/grid/log/ractest1/agent/ohasd/oraagent_grid/oraagent_grid.log"

    继续查看相关log 

    -- asm log 

    1. Fatal NI connect error 12649, connecting to:
    2. (LOCAL=NO)
    3. VERSION INFORMATION:
    4. TNS for Linux: Version 11.2.0.4.0 - Production
    5. Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production
    6. TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production
    7. Time: 01-JUN-2022 14:38:25
    8. Tracing not turned on.
    9. Tns error struct:
    10. ns main err code: 12649
    11. TNS-12649: Unknown encryption or data integrity algorithm
    12. ns secondary err code: 0
    13. nt main err code: 0
    14. nt secondary err code: 0
    15. nt OS err code: 0
    16. opiodr aborting process unknown ospid (47070) as a result of ORA-609
    17. Wed Jun 01 14:43:25 2022
    18. ***********************************************************************
    1. 2022-06-24 00:06:23.291: [ora.asm][532666112]{0:0:2} [start] InstAgent::start call sysresv
    2. 2022-06-24 00:06:23.291: [ora.asm][532666112]{0:0:2} [start] Container:start scls_clean_oracle_ipc Container +ASM1 dbHome /u01/app/grid
    3. 2022-06-24 00:06:23.301: [ora.asm][532666112]{0:0:2} [start] clsnInstConnection::makeConnectStr UsrOraEnv m_oracleHome /u01/app/grid Crshome /u01/app/grid
    4. 2022-06-24 00:06:23.301: [ora.asm][532666112]{0:0:2} [start] makeConnectStr = (DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/u01/app/grid/bin/oracle)(ARGV0=oracle+ASM1)(ENVS='ORACLE_HOME=/u01/app/grid,ORACLE_SID=+ASM1')(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=+ASM1)))
    5. 2022-06-24 00:06:23.302: [ora.asm][532666112]{0:0:2} [start] InstConnection::connectInt: server not attached
    6. 2022-06-24 00:06:23.314: [ora.asm][532666112]{0:0:2} [start] ORA-12547: TNS:lost contact
    7. 2022-06-24 00:06:23.314: [ora.asm][532666112]{0:0:2} [start] InstConnection::connectInt (1) Exception OCIException
    8. 2022-06-24 00:06:23.314: [ora.asm][532666112]{0:0:2} [start] InstConnection:connect:excp OCIException OCI error 12547
    9. 2022-06-24 00:06:23.314: [ora.asm][532666112]{0:0:2} [start] InstConnection::connectInt: server not attached
    10. 2022-06-24 00:06:23.323: [ora.asm][532666112]{0:0:2} [start] ORA-12547: TNS:lost contact

    尝试启动asm实例,报错

    1. [grid@ractest1 ~]$ sqlplus /nolog
    2. SQL*Plus: Release 11.2.0.4.0 Production on Fri Jun 24 00:30:09 2022
    3. Copyright (c) 1982, 2013, Oracle. All rights reserved.
    4. SQL> conn / as sysasm
    5. ERROR:
    6. ORA-12547: TNS:lost contact
    7. SQL> exit

     

    MOS上搜文档,查到相关文档:11gR2 ASM Fails to Start With "ORA-12547: TNS:lost contact" and ORA-12649 due to Incorrect Network Security Setting (Doc ID 1505025.1)

    与该文档中的相关日志进行对比,一抹一样。

    该文档定位为grid用户下的sqlnet.ora中设置了加密。查看相关内容,果然加密

    1. [grid@ractest1 admin]$ more sqlnet.ora
    2. # sqlnet.ora.ractest1 Network Configuration File: /u01/app/grid/network/admin/sqlnet.ora.ractest1
    3. # Generated by Oracle configuration tools.
    4. NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    5. ADR_BASE = /u01/app/gridbase
    6. #SQLNET.ENCRYPTION_SERVER = REQUIRED
    7. #SQLNET.ENCRYPTION_TYPES_SERVER = RC4_256
    8. #SQLNET.CRYPTO_CHECKSUM_SERVER = REQUIRED
    9. #SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER = RC4_256
    10. [grid@ractest1 admin]$

    另一个节点就没有加密:

    1. [grid@ractest2 admin]$ more sqlnet.ora
    2. # sqlnet.ora.ractest2 Network Configuration File: /u01/app/grid/network/admin/sqlnet.ora.ractest2
    3. # Generated by Oracle configuration tools.
    4. NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    5. ADR_BASE = /u01/app/gridbase
    6. [grid@ractest2 admin]$

    根据mos上的说明,屏蔽掉加密,再次启动,正常启动。问题解决。

    参考文档:11gR2 ASM Fails to Start With "ORA-12547: TNS:lost contact" and ORA-12649 due to Incorrect Network Security Setting (Doc ID 1505025.1)

    文档内容:

    APPLIES TO:

    Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
    Information in this document applies to any platform.

    SYMPTOMS

    11gR2 ASM fails to start while GI is restarting:

    • Output from "crsctl start res ora.asm -init" command 

    CRS-2672: Attempting to start 'ora.asm' on 'racnode1'
    ORA-12547: TNS:lost contact
    CRS-5017: The resource action "ora.asm start" encountered the following error:
    ORA-12547: TNS:lost contactCRS-2674: Start of 'ora.asm' on 'racnode1' failed
    CRS-2679: Attempting to clean 'ora.asm' on 'racnode1'
    ORA-12547: TNS:lost contact
    CRS-2681: Clean of 'ora.asm' on 'racnode1' succeeded
    CRS-4000: Command Start failed, or completed with errors.

      

    • Output from sqlplus

    $ export ORACLE_SID=<+ASMn>
    $ export ORACLE_HOME=<GRID_HOME>
    $ $ORACLE_HOME/bin/sqlplus / as sysasm

    SQL*Plus: Release 11.2.0.2.0 Production on Fri Nov 9 16:38:52 2012

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    ERROR:
    ORA-12547: TNS:lost contact

      

    • <GRID_USER_HOME_PATH>/oradiag_<GRID_USER>/diag/clients/user_<GRID_USER>/host_<HOST_ID>/trace/sqlnet.log 

    Fatal NI connect error 12547, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/orcl/grid/oracle/product/11.2.0.2/grid/bin/oracle)(ARGV0=oracle+ASM1)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')(DETACH=NO))(CONNECT_DATA=(CID=(PROGRAM=sqlplus)(HOST=racnode1)(USER=oracle))))

     VERSION INFORMATION:
           TNS for Linux: Version 11.2.0.2.0 - Production
           Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Production
     Time: 09-NOV-2012 17:36:36
     Tracing not turned on.
     Tns error struct:
       ns main err code: 12547

    TNS-12547: TNS:lost contact
       ns secondary err code: 12560
       nt main err code: 517

    TNS-00517: Lost contact
       nt secondary err code: 32
       nt OS err code: 0

    • <GRID_HOME>/rdbms/log/+asm1_ora_<PID>.trc

    *** 2012-11-09 18:12:51.661
    opiino: Attach failed due to ORA-12649


     

    CAUSE

    sqlnet.ora changed in $TNS_ADMIN or $GRID_HOME/network/admin directory to add encryption, i.e. 

    SQLNET.ENCRYPTION_TYPES_SERVER={3DES168}
    SQLNET.ENCRYPTION_SERVER=REQUIRED

    SOLUTION

    Restore sqlnet.ora from backup and start ASM from sqlplus.

  • 相关阅读:
    李沐多模态串讲笔记
    KubeSphere 社区双周报 | FluentBit 新增 tcp 输入插件 | 2023.09.29-10.12
    云原生容器平台——新华资产数字化转型加速器
    LabelImg标注快捷键
    axios的get请求时数组参数没有下标
    十进制小数转换为单双精度浮点数方法
    机械转码日记【25】多态
    三分钟了解var const let 区别
    寻找在num范围内,能被多个小数整除的有理数
    基于springboot小型车队管理系统毕业设计源码
  • 原文地址:https://blog.csdn.net/xxzhaobb/article/details/125431255