ITPub博客

首页 > 数据库 > Oracle > 【ASK_ORACLE】Relink RAC集群详细步骤

【ASK_ORACLE】Relink RAC集群详细步骤

原创 Oracle 作者:Attack_on_Jager 时间:2022-03-18 10:59:19 0 删除 编辑

说明

相关文章链接:

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  ##每个节点都要执行




来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69992972/viewspace-2872417/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
在某银行任职DBA,拥有多年数据库运维经验,擅长Oracle,MySQL。尤其擅长Oracle的SQL优化,数据库性能调优,数据库备份、恢复与迁移。拥有的认证:OCM 12c,OCM 11g,MySQL OCP,RHCE,阿里云ACP,巨杉SCDP,软考系统集成工程师认证,Oracle Iaas OCA,OBCA,TDSQL认证,TBase认证

注册时间:2021-01-11

  • 博文量
    142
  • 访问量
    482837