Oracledna

Relink The Oracle GridInfrastructure RAC Cluster Installation

To relink Oracle Grid Infrastructure RAC/Cluster installation, we must stop CRS, unlock the Grid home, run the relink process as the Grid owner, and then re-lock/start CRS.


This procedure is required after OS patching or upgrades to ensure Oracle Clusterware and ASM binaries are properly rebuilt.

1. Stop CRS on first node.

[root@racnode1 ~]# crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.crsd’ on ‘racnode1’
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on server ‘racnode1’
CRS-2673: Attempting to stop ‘ora.qosmserver’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.racdb.db’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.chad’ on ‘racnode1’
CRS-2677: Stop of ‘ora.chad’ on ‘racnode1’ succeeded
CRS-2677: Stop of ‘ora.racdb.db’ on ‘racnode1’ succeeded
CRS-33673: Attempting to stop resource group ‘ora.asmgroup’ on server ‘racnode1’
CRS-2673: Attempting to stop ‘ora.OCR.dg’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.DATA.dg’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.LISTENER_SCAN2.lsnr’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.LISTENER_SCAN3.lsnr’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.cvu’ on ‘racnode1’
CRS-2677: Stop of ‘ora.LISTENER_SCAN2.lsnr’ on ‘racnode1’ succeeded
CRS-2673: Attempting to stop ‘ora.scan2.vip’ on ‘racnode1’
CRS-2677: Stop of ‘ora.OCR.dg’ on ‘racnode1’ succeeded
CRS-2677: Stop of ‘ora.LISTENER_SCAN3.lsnr’ on ‘racnode1’ succeeded
CRS-2677: Stop of ‘ora.DATA.dg’ on ‘racnode1’ succeeded
CRS-2673: Attempting to stop ‘ora.asm’ on ‘racnode1’
CRS-2677: Stop of ‘ora.LISTENER.lsnr’ on ‘racnode1’ succeeded
CRS-2677: Stop of ‘ora.scan2.vip’ on ‘racnode1’ succeeded
CRS-2673: Attempting to stop ‘ora.racnode1.vip’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.scan3.vip’ on ‘racnode1’
CRS-2677: Stop of ‘ora.asm’ on ‘racnode1’ succeeded
CRS-2673: Attempting to stop ‘ora.ASMNET1LSNR_ASM.lsnr’ on ‘racnode1’
CRS-2677: Stop of ‘ora.cvu’ on ‘racnode1’ succeeded
CRS-2677: Stop of ‘ora.racnode1.vip’ on ‘racnode1’ succeeded
CRS-2677: Stop of ‘ora.scan3.vip’ on ‘racnode1’ succeeded
CRS-2677: Stop of ‘ora.ASMNET1LSNR_ASM.lsnr’ on ‘racnode1’ succeeded
CRS-2673: Attempting to stop ‘ora.asmnet1.asmnetwork’ on ‘racnode1’
CRS-2677: Stop of ‘ora.asmnet1.asmnetwork’ on ‘racnode1’ succeeded
CRS-33677: Stop of resource group ‘ora.asmgroup’ on server ‘racnode1’ succeeded.
CRS-2677: Stop of ‘ora.qosmserver’ on ‘racnode1’ succeeded
CRS-2672: Attempting to start ‘ora.qosmserver’ on ‘racnode2’
CRS-2672: Attempting to start ‘ora.scan2.vip’ on ‘racnode2’
CRS-2672: Attempting to start ‘ora.scan3.vip’ on ‘racnode2’
CRS-2672: Attempting to start ‘ora.cvu’ on ‘racnode2’
CRS-2672: Attempting to start ‘ora.racnode1.vip’ on ‘racnode2’
CRS-2676: Start of ‘ora.cvu’ on ‘racnode2’ succeeded
CRS-2676: Start of ‘ora.racnode1.vip’ on ‘racnode2’ succeeded
CRS-2676: Start of ‘ora.scan2.vip’ on ‘racnode2’ succeeded
CRS-2676: Start of ‘ora.scan3.vip’ on ‘racnode2’ succeeded
CRS-2672: Attempting to start ‘ora.LISTENER_SCAN2.lsnr’ on ‘racnode2’
CRS-2672: Attempting to start ‘ora.LISTENER_SCAN3.lsnr’ on ‘racnode2’
CRS-2676: Start of ‘ora.LISTENER_SCAN3.lsnr’ on ‘racnode2’ succeeded
CRS-2676: Start of ‘ora.LISTENER_SCAN2.lsnr’ on ‘racnode2’ succeeded
CRS-2676: Start of ‘ora.qosmserver’ on ‘racnode2’ succeeded
CRS-2673: Attempting to stop ‘ora.ons’ on ‘racnode1’
CRS-2677: Stop of ‘ora.ons’ on ‘racnode1’ succeeded
CRS-2673: Attempting to stop ‘ora.net1.network’ on ‘racnode1’
CRS-2677: Stop of ‘ora.net1.network’ on ‘racnode1’ succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on ‘racnode1’ has completed
CRS-2677: Stop of ‘ora.crsd’ on ‘racnode1’ succeeded
CRS-2673: Attempting to stop ‘ora.storage’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.crf’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.drivers.acfs’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.mdnsd’ on ‘racnode1’
CRS-2677: Stop of ‘ora.crf’ on ‘racnode1’ succeeded
CRS-2677: Stop of ‘ora.drivers.acfs’ on ‘racnode1’ succeeded
CRS-2677: Stop of ‘ora.storage’ on ‘racnode1’ succeeded
CRS-2673: Attempting to stop ‘ora.asm’ on ‘racnode1’
CRS-2677: Stop of ‘ora.mdnsd’ on ‘racnode1’ succeeded
CRS-2677: Stop of ‘ora.asm’ on ‘racnode1’ succeeded
CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip’ on ‘racnode1’
CRS-2677: Stop of ‘ora.cluster_interconnect.haip’ on ‘racnode1’ succeeded
CRS-2673: Attempting to stop ‘ora.ctssd’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.evmd’ on ‘racnode1’
CRS-2677: Stop of ‘ora.evmd’ on ‘racnode1’ succeeded
CRS-2677: Stop of ‘ora.ctssd’ on ‘racnode1’ succeeded
CRS-2673: Attempting to stop ‘ora.cssd’ on ‘racnode1’
CRS-2677: Stop of ‘ora.cssd’ on ‘racnode1’ succeeded
CRS-2673: Attempting to stop ‘ora.gipcd’ on ‘racnode1’
CRS-2673: Attempting to stop ‘ora.gpnpd’ on ‘racnode1’
CRS-2677: Stop of ‘ora.gipcd’ on ‘racnode1’ succeeded
CRS-2677: Stop of ‘ora.gpnpd’ on ‘racnode1’ succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ‘racnode1’ has completed
CRS-4133: Oracle High Availability Services has been stopped.


[root@racnode1 ~]# crsctl status res -t
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Status failed, or completed with errors.

2) As root OS user, unlock the Grid Infrastructure Home

[root@racnode1 ~]# cd /u01/app/19c/grid/crs/install


[root@racnode1 install]# rootcrs.sh -unlock
Using configuration parameter file: /u01/app/19c/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/grid/crsdata/racnode1/crsconfig/crsunlock_racnode1_2026-05-28_11-13-46AM.log
2026/05/28 11:13:46 CLSRSC-4012: Shutting down Oracle Trace File Analyzer (TFA) Collector.
2026/05/28 11:14:08 CLSRSC-4013: Successfully shut down Oracle Trace File Analyzer (TFA) Collector.
2026/05/28 11:14:09 CLSRSC-347: Successfully unlock /u01/app/19c/grid

 

Note: On 12.1/12.2/19c releases, rootcrs.sh can be used instead of rootcrs.pl. Command as “rootcrs.sh -unlock”

3) As the Oracle Grid Infrastructure owner, relink the Grid Infrastructure Home as follows:


[root@racnode1 ~]# su – grid


[grid@racnode1 ~]$ export ORACLE_HOME=/u01/app/19c/grid


[grid@racnode1 ~]$ /u01/app/19c/grid/bin/relink all
writing relink log to: /u01/app/19c/grid/install/relinkActions2026-05-28_11-20-29AM.log

4) As root OS user, execute the below command

[grid@racnode1 ~]$ su – root


[root@racnode1 ~]# cd /u01/app/19c/grid/rdbms/install/

[root@racnode1 install]# ./rootadd_rdbms.sh


[root@racnode1 ~]# cd /u01/app/19c/grid/crs/install

[root@racnode1 install]# rootcrs.sh -lock
Using configuration parameter file: /u01/app/19c/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/grid/crsdata/racnode1/crsconfig/crslock_racnode1_2026-05-28_11-27-38AM.log
2026/05/28 11:27:48 CLSRSC-329: Replacing Clusterware entries in file ‘oracle-ohasd.service’

Note: On 12.1, use “rootcrs.sh -patch”.
Note: On 12.2/21c, use “rootcrs.sh -lock” then “crsctl start crs”
Note: On 12/21c, <GI_HOME>/crs/install/rootcrs.sh -postpatch, can be used to start and lock the GI home

 

5. As root user, start the CRS on node1.

[root@racnode1 ~]# crsctl start crs
CRS-4123: Oracle High Availability Services has been started.

5. Peform the 1 to 5 steps on node2.


[root@racnode2 install]# crsctl start crs
CRS-4123: Oracle High Availability Services has been started.

 

[root@racnode2 ~]# crsctl status res -t
——————————————————————————–
Name Target State Server State details
——————————————————————————–
Local Resources
——————————————————————————–
ora.LISTENER.lsnr
ONLINE ONLINE racnode1 STABLE
ONLINE ONLINE racnode2 STABLE
ora.chad
ONLINE ONLINE racnode1 STABLE
ONLINE ONLINE racnode2 STABLE
ora.net1.network
ONLINE ONLINE racnode1 STABLE
ONLINE ONLINE racnode2 STABLE
ora.ons
ONLINE ONLINE racnode1 STABLE
ONLINE ONLINE racnode2 STABLE
ora.proxy_advm
OFFLINE OFFLINE racnode1 STABLE
OFFLINE OFFLINE racnode2 STABLE
——————————————————————————–
Cluster Resources
——————————————————————————–
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
1 ONLINE ONLINE racnode1 STABLE
2 ONLINE ONLINE racnode2 STABLE
ora.DATA.dg(ora.asmgroup)
1 ONLINE ONLINE racnode1 STABLE
2 ONLINE ONLINE racnode2 STABLE
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE racnode2 STABLE
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE racnode1 STABLE
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE racnode1 STABLE
ora.OCR.dg(ora.asmgroup)
1 ONLINE ONLINE racnode1 STABLE
2 ONLINE ONLINE racnode2 STABLE
ora.asm(ora.asmgroup)
1 ONLINE ONLINE racnode1 Started,STABLE
2 ONLINE ONLINE racnode2 Started,STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
1 ONLINE ONLINE racnode1 STABLE
2 ONLINE ONLINE racnode2 STABLE
ora.cvu
1 ONLINE ONLINE racnode1 STABLE
ora.qosmserver
1 ONLINE ONLINE racnode1 STABLE
ora.racdb.db
1 ONLINE ONLINE racnode1 Open,HOME=/u01/app/o
racle/product/19c/db
,STABLE
2 ONLINE ONLINE racnode2 Open,HOME=/u01/app/o
racle/product/19c/db
,STABLE
ora.racnode1.vip
1 ONLINE ONLINE racnode1 STABLE
ora.racnode2.vip
1 ONLINE ONLINE racnode2 STABLE
ora.scan1.vip
1 ONLINE ONLINE racnode2 STABLE
ora.scan2.vip
1 ONLINE ONLINE racnode1 STABLE
ora.scan3.vip
1 ONLINE ONLINE racnode1 STABLE

6. Review the relink.log files of both nodes.

Review the relink.log files of both nodes located at the following directory for any error

<Grid Infrastructure Oracle Home>/install/relink.log

Disclaimer:

Please note the above information is only for educational purpose and practised in personal test database only. Always test in test database before implementing in production database. The pre-requisites and ways of implementing may vary from one environment to another. Hence, not providing guarantee that it will work in your environment.