Disclaimer

Friday 16 July 2021

Relink Oracle 12c Grid Infrastructure and RDBMS binaries

In order to relink the Oracle Grid Infrastructure RAC/Cluster Installation, please follow the next steps after stopping all the services running:


1) As root OS user, please unlock the Grid Infrastructure Oracle Home (on every node) as follows:

[root@RAC18C ~]# $ORACLE_HOME/crs/install/rootcrs.sh -unlock
Using configuration parameter file: /u01/app/18.0.0.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/oracle/crsdata/rac18c/crsconfig/haunlock__2018-03-12_04-51-38AM.log
2018/03/12 04:51:56 CLSRSC-347: Successfully unlock /u01/app/18.0.0.0/grid
[root@RAC18C ~]#


2) As the Oracle Grid Infrastructure owner (on every node) relink the Grid Infrastructure Oracle Home as follows:

[root@RAC18C ~]# ls -l $ORACLE_HOME/rdbms/lib/config.o
-rw-r--r-- 1 oracle oinstall 1320 Mar 12 04:06 /u01/app/18.0.0.0/grid//rdbms/lib/config.o
[root@RAC18C ~]# mv $ORACLE_HOME/rdbms/lib/config.o $ORACLE_HOME/rdbms/lib/config.o_BAK
[root@RAC18C ~]# su - oracle
[oracle@RAC18C ~]$ export ORACLE_HOME=/u01/app/18.0.0.0/grid/
[oracle@RAC18C ~]$ export PATH=$ORACLE_HOME/bin:$PATH
[oracle@RAC18C ~]$ $ORACLE_HOME/bin/relink all
writing relink log to: /u01/app/18.0.0.0/grid//install/relink_2018-03-12_04-53-50AM.log
[oracle@RAC18C ~]$


3) As root OS user again, please execute the next commands (on every node):

[oracle@RAC18C ~]$ su -
[root@RAC18C ~]# cd $ORACLE_HOME/rdbms/install
[root@RAC18C install]# ./rootadd_rdbms.sh
[root@RAC18C install]# cd $ORACLE_HOME/crs/install
[root@RAC18C install]# rootcrs.sh -lock
Using configuration parameter file: /u01/app/18.0.0.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/oracle/crsdata/rac18c/crsconfig/crslock_rac18c_2018-03-12_04-58-40AM.log
2018/03/12 04:58:43 CLSRSC-329: Replacing Clusterware entries in file 'oracle-ohasd.service'
[root@RAC18C install]#

Note: On 12.1, use “rootcrs.sh -patch”. On 12.2, use “rootcrs.sh -lock” then “crsctl start crs


4) Please review the relink.log file located in the following directory (to confirm or discard any error):

[root@RAC18C install]# more /u01/app/18.0.0.0/grid//install/relink_2018-03-12_04-53-50AM.log

Thank you 



No comments:

Post a Comment

100 Oracle DBA Interview Questions and Answers

  Here are 100 tricky interview questions tailored for a Senior Oracle DBA role. These questions span a wide range of topics, including perf...