relink do GRID_HOME em Single Instance

Após atualizar o Sistema Operacional (você faz isto, certo?) este é o procedimento para executar RELINK dos binários do GRID_HOME e ORACLE_HOME em Oracle Restart (Single Instance com Grid Infrastructure).

Este procedimento está no Doc ID 1536057.1 do MOS.

[oracle@Oracle ~]$ . oraenv
ORACLE_SID = [ORCL] ? +ASM
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@Oracle ~]$ su
Password:
[root@Oracle oracle]# echo $ORACLE_HOME
/u01/app/19.3.0.0/grid
[root@Oracle oracle]# $ORACLE_HOME/crs/install/roothas.sh -unlock
Using configuration parameter file: /u01/app/19.3.0.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
  /u01/app/oracle/crsdata/oracle/crsconfig/haunlock__2019-09-12_02-51-02PM.log
2019/09/12 14:51:15 CLSRSC-347: Successfully unlock /u01/app/19.3.0.0/grid
[root@Oracle oracle]# exit
exit
[oracle@Oracle ~]$ echo $ORACLE_HOME
/u01/app/19.3.0.0/grid
[oracle@Oracle ~]$ mv $ORACLE_HOME/rdbms/lib/config.o $ORACLE_HOME/rdbms/lib/config.o_BAK
[oracle@Oracle ~]$ script /tmp/relink_gi.txt
Script started, file is /tmp/relink_gi.txt
[oracle@Oracle ~]$ env| egrep 'ORA|PATH' | sort
CLASSPATH=/u01/app/oracle/product/19.3.0.0/db_1/JRE:/u01/app/oracle/product/19.3.0.0/db_1/jlib:/u01/app/oracle/product/19.3.0.0/db_1/rdbms/jlib
LD_LIBRARY_PATH=/u01/app/19.3.0.0/grid/lib:/lib:/usr/lib
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/19.3.0.0/grid
ORACLE_HOSTNAME=Baltazar.localdomain
ORACLE_SID=+ASM
ORACLE_TERM=xterm
ORACLE_UNQNAME=ORCL
PATH=/u01/app/19.3.0.0/grid/bin:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle/.local/bin:/home/oracle/bin
[oracle@Oracle ~]$ $ORACLE_HOME/bin/relink all
writing relink log to: /u01/app/19.3.0.0/grid/install/relinkActions2019-09-12_02-52-08PM.log
[oracle@Oracle ~]$ exit
exit
Script done, file is /tmp/relink_gi.txt
[oracle@Oracle ~]$ su
Password:
[root@Oracle oracle]# $ORACLE_HOME/rdbms/install/rootadd_rdbms.sh
[root@Oracle oracle]# $ORACLE_HOME/crs/install/roothas.sh -postpatch
Using configuration parameter file: /u01/app/19.3.0.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
  /u01/app/oracle/crsdata/oracle/crsconfig/hapatch_2019-09-12_02-54-44PM.log
2019/09/12 14:54:48 CLSRSC-329: Replacing Clusterware entries in file 'oracle-ohasd.service'
2019/09/12 15:03:46 CLSRSC-400: A system reboot is required to continue installing.
2019/09/12 15:03:46 CLSRSC-672: Post-patch steps for patching GI home successfully completed.
[root@Oracle oracle]# su - oracle
[oracle@Oracle ~]$ srvctl stop database -db ORCL
[oracle@Oracle ~]$ relink all
writing relink log to: /u01/app/oracle/product/19.3.0.0/db_1/install/relinkActions2019-09-12_03-05-48PM.log
[oracle@Oracle ~]$ exit
logout
[root@Oracle oracle]# reboot

Leave a Reply

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Esse site utiliza o Akismet para reduzir spam. Aprenda como seus dados de comentários são processados.