码迷,mamicode.com
首页 > 数据库 > 详细

oracle 12c rac如何禁用haip

时间:2020-04-07 20:55:31      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:--   targe   rod   centos 7   enable   centos   上启   art   and   

环境:

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

标签:--   targe   rod   centos 7   enable   centos   上启   art   and   

原文地址:https://www.cnblogs.com/hxlasky/p/12655426.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!