oracle 12c rac如何禁用haip

Posted 东南风

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle 12c rac如何禁用haip相关的知识,希望对你有一定的参考价值。

环境:

OS:Centos 7

DB:18.0.0.0

 ----------------------------------------------------------------------禁用-------------------------------------------------------------------------------------------------------

1.停掉每个节点的crs
Run "crsctl stop crs" on all nodes to stop CRS stack.

2.关闭HAIP
On one node, run the following commands:
在一个节点上执行如下操作
$CRS_HOME/bin/crsctl start crs -excl -nocrs
$CRS_HOME/bin/crsctl stop res ora.asm -init
$CRS_HOME/bin/crsctl modify res ora.cluster_interconnect.haip -attr  "ENABLED=0" -init
$CRS_HOME/bin/crsctl modify res ora.asm -attr "START_DEPENDENCIES=‘hard(ora.cssd,ora.ctssd)pullup(ora.cssd,ora.ctssd)weak(ora.drivers.acfs)‘,STOP_DEPENDENCIES=‘hard(intermediate:ora.cssd)‘" -init
$CRS_HOME/bin/crsctl stop crs

3.重复步骤2 在其他的节点上进行操作
Repeat Step(2) on other nodes.

4.在每个机器上启动crs
Run "crsctl start crs" on all nodes to restart CRS stack
./crsctl status res ora.cluster_interconnect.haip




5.查看状态
[root@host01 bin]# ./crsctl status res -t -init
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.asm
      1        ONLINE  ONLINE       host01                   STABLE
ora.cluster_interconnect.haip
      1        ONLINE  OFFLINE                               STABLE
ora.crf
      1        ONLINE  ONLINE       host01                   STABLE
ora.crsd
      1        ONLINE  ONLINE       host01                   STABLE
ora.cssd
      1        ONLINE  ONLINE       host01                   STABLE
ora.cssdmonitor
      1        ONLINE  ONLINE       host01                   STABLE
ora.ctssd
      1        ONLINE  ONLINE       host01                   OBSERVER,STABLE
ora.diskmon
      1        OFFLINE OFFLINE                               STABLE
ora.evmd
      1        ONLINE  ONLINE       host01                   STABLE
ora.gipcd
      1        ONLINE  ONLINE       host01                   STABLE
ora.gpnpd
      1        ONLINE  ONLINE       host01                   STABLE
ora.mdnsd
      1        ONLINE  ONLINE       host01                   STABLE
ora.storage
      1        ONLINE  ONLINE       host01                   STABLE
--------------------------------------------------------------------------------

[root@host02 bin]# ./crsctl status res -t -init
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.asm
      1        ONLINE  ONLINE       host02                   Started,STABLE
ora.cluster_interconnect.haip
      1        OFFLINE OFFLINE                               STABLE
ora.crf
      1        ONLINE  ONLINE       host02                   STABLE
ora.crsd
      1        ONLINE  ONLINE       host02                   STABLE
ora.cssd
      1        ONLINE  ONLINE       host02                   STABLE
ora.cssdmonitor
      1        ONLINE  ONLINE       host02                   STABLE
ora.ctssd
      1        ONLINE  ONLINE       host02                   OBSERVER,STABLE
ora.diskmon
      1        OFFLINE OFFLINE                               STABLE
ora.evmd
      1        ONLINE  ONLINE       host02                   STABLE
ora.gipcd
      1        ONLINE  ONLINE       host02                   STABLE
ora.gpnpd
      1        ONLINE  ONLINE       host02                   STABLE
ora.mdnsd
      1        ONLINE  ONLINE       host02                   STABLE
ora.storage
      1        ONLINE  ONLINE       host02                   STABLE
--------------------------------------------------------------------------------

 

------------------------------------------------------恢复haip------------------------------------------------------------------

1.查看当前节点的设置状态
[root@host01 bin]# ./crsctl stat res ora.cluster_interconnect.haip -p -init | grep ENABLED
ENABLED=0
[root@host02 bin]# ./crsctl stat res ora.cluster_interconnect.haip -p -init | grep ENABLED
ENABLED=0


2.分别在两个节点上操作
[root@host02 bin]#cd /u01/app/grid/product/12.2.0/bin
[root@host02 bin]#./crsctl modify res ora.cluster_interconnect.haip -attr "ENABLED=1"  -init


3.重启动crs
分别在两个节点上进行操心
./crsctl stop  crs
./crsctl start crs 

 

 

-- The End --

以上是关于oracle 12c rac如何禁用haip的主要内容,如果未能解决你的问题,请参考以下文章

Oracle 12C Rac到Rac搭建ADG

oracle 12c r2 rac + ORA-28040

Oracle 12C RAC集群搭建

oracle12c rac搭建时主机名无效问题的解决

Oracle12c RAC数据导出至Oracle11g

Oracle 12C Data Gurad RAC TO RAC