【ASK_ORACLE】Relink RAC集群详细步骤

来源:这里教程网 时间:2026-03-03 17:30:54 作者:

说明相关文章链接:Relink ASM单实例数据库详细步骤: http://blog.itpub.net/69992972/viewspace-2871957/

实验环境

搭建平台:VMware Workstation

OS:RHEL 7.6

Grid&DB:Oracle 12.2.0.1

Relink RAC集群步骤

1. 停止RAC集群 切换到root用户

$ su - 
# $GI_HOME/bin/crsctl stop crs  ## 每个节点都要执行!!

注: (1)$GI_HOME/bin/crsctl stop crs 这条命令可以彻底停止RAC的所有服务,但只适用于本地节点,所以要停止整个RAC集群必须在每个节点执行!! (2)$GI_HOME/bin/crsctl stop cluster -all 这条命令不能停止底层的高可用ohas进程

# $GI_HOME/bin/crsctl stop crs  ## 在testrac01 节点执行后的输出
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'testrac01'
CRS-2673: Attempting to stop 'ora.crsd' on 'testrac01'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on server 'testrac01'
CRS-2673: Attempting to stop 'ora.m2test.db' on 'testrac01'
CRS-2673: Attempting to stop 'ora.chad' on 'testrac01'
CRS-2677: Stop of 'ora.m2test.db' on 'testrac01' succeeded
CRS-33673: Attempting to stop resource group 'ora.asmgroup' on server 'testrac01'
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'testrac01'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'testrac01'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'testrac01' succeeded
CRS-2673: Attempting to stop 'ora.testrac01.vip' on 'testrac01'
CRS-2677: Stop of 'ora.testrac01.vip' on 'testrac01' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'testrac01' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'testrac01'
CRS-2677: Stop of 'ora.asm' on 'testrac01' succeeded
CRS-2673: Attempting to stop 'ora.ASMNET1LSNR_ASM.lsnr' on 'testrac01'
CRS-2677: Stop of 'ora.chad' on 'testrac01' succeeded
CRS-2677: Stop of 'ora.ASMNET1LSNR_ASM.lsnr' on 'testrac01' succeeded
CRS-2673: Attempting to stop 'ora.asmnet1.asmnetwork' on 'testrac01'
CRS-2677: Stop of 'ora.asmnet1.asmnetwork' on 'testrac01' succeeded
CRS-33677: Stop of resource group 'ora.asmgroup' on server 'testrac01' succeeded.
CRS-2672: Attempting to start 'ora.testrac01.vip' on 'cehaovmsp1102'
CRS-2676: Start of 'ora.testrac01.vip' on 'cehaovmsp1102' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'testrac01'
CRS-2677: Stop of 'ora.ons' on 'testrac01' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'testrac01'
CRS-2677: Stop of 'ora.net1.network' on 'testrac01' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'testrac01' has completed
CRS-2677: Stop of 'ora.crsd' on 'testrac01' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'testrac01'
CRS-2673: Attempting to stop 'ora.crf' on 'testrac01'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'testrac01'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'testrac01'
CRS-2677: Stop of 'ora.drivers.acfs' on 'testrac01' succeeded
CRS-2677: Stop of 'ora.crf' on 'testrac01' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'testrac01' succeeded
CRS-2677: Stop of 'ora.asm' on 'testrac01' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'testrac01'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'testrac01' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'testrac01'
CRS-2673: Attempting to stop 'ora.evmd' on 'testrac01'
CRS-2677: Stop of 'ora.ctssd' on 'testrac01' succeeded
CRS-2677: Stop of 'ora.evmd' on 'testrac01' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'testrac01'
CRS-2677: Stop of 'ora.cssd' on 'testrac01' succeeded
CRS-2673: Attempting to stop 'ora.driver.afd' on 'testrac01'
CRS-2673: Attempting to stop 'ora.gipcd' on 'testrac01'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'testrac01'
CRS-2677: Stop of 'ora.driver.afd' on 'testrac01' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'testrac01' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'testrac01' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'testrac01' has completed
CRS-4133: Oracle High Availability Services has been stopped.

2. 在 每个RAC节点执行unlock操作

$ su -
# $GI_HOME/crs/install/rootcrs.sh -unlock  ##每个节点都要执行!!

3. 在 每个RAC节点执行relink操作

# su - grid
$ $GI_HOME/bin/relink all
writing relink log to: /oracle/app/grid/product/12.2.0/grid/install/relink.log

4. 在 每个RAC节点执行lock操作

# $GI_HOME/rdbms/install/rootadd_rdbms.sh
# $GI_HOME/crs/install/rootcrs.sh -lock

注:12.1.0.1版本需要使用rootcrs.sh -patch;11g版本使用perl rootcrs.pl -patch 5. 检查每个RAC节点是否启动在每个节点执行完roothas.sh后,每个的CRS服务都会启动, 保险起见用root或者grid用户检查一下,如果没有启动,需要用root用户手动启动(1)检查命令:

$GI_HOME/bin/crsctl status res -t

(2)启动CRS服务命令

$ su - 
# $GI_HOME/bin/crsctl start crs  ##每个节点都要执行

相关推荐