viernes, 24 de septiembre de 2021

How to apply a patch with opatchauto

In this article I will show you how to install a patch in Grid Infrastructure home and in the Database Home using opatchauto.

For this example I will install the the following patches:

  • Patch 33803476 in Grid Infrastructure.
  • Patch 33803476 and 33808367 in Database home. 

 

Installing a patch in Grid Infrastructure home:

Update OPatch in Grid Infrastructure:

You have to download the patch 6880880 from Oracle Metalink and clear the directory $ORACLE_HOME/OPatch. Then you can unzip a new fresh version of OPatch:

$ unzip p6880880_190000_Linux-x86-64.zip -d /u01/app/oracle/product/19.0.0/grid_home

 Stopping the CRS:

 [root@srv1~]# /u01/app/oracle/product/19.0.0/grid_home/bin/crsctl stop crs



Applying the Patch:

[root@srv1~]# /u01/app/oracle/product/19.0.0/grid_home/OPatch/opatchauto  apply /u01/paquetes/33859214/33859214/33803476 -oh /u01/app/oracle/product/19.0.0/grid_home -nonrolling



Verifying the Patch:

[grid@srv1~]$ /u01/app/oracle/product/19.0.0/grid_home/OPatch/opatch lsinventory|egrep -i 'Patch description'
Patch description:  "TOMCAT RELEASE UPDATE 19.0.0.0.0 (33911149)"
Patch description:  "ACFS RELEASE UPDATE 19.15.0.0.0 (33815607)"
Patch description:  "OCW RELEASE UPDATE 19.15.0.0.0 (33815596)"
Patch description:  "Database Release Update : 19.15.0.0.220419 (33806152)"
Patch description:  "DBWLM RELEASE UPDATE 19.0.0.0.0 (33575402)"
[grid@srv1 ~]$

 

Installing a patch in Database home:

 

Update OPatch in Grid Infrastructure:

You have to download the patch 6880880 from Oracle Metalink and clear the directory $ORACLE_HOME/OPatch. Then you can unzip a new fresh version of OPatch:

$  unzip p6880880_190000_Linux-x86-64.zip -d /u01/app/oracle/product/19.0.0/db_home

 

Applying the patch: 

#  /u01/app/oracle/product/19.0.0/db_home/OPatch/opatchauto  apply /u01/paquetes/33859214/33859214/33803476 -oh /u01/app/oracle/product/19.0.0/db_home -nonrolling
#  /u01/app/oracle/product/19.0.0/db_home/OPatch/opatchauto  apply /u01/paquetes/33859214/33859214/33808367 -oh /u01/app/oracle/product/19.0.0/db_home -nonrolling


Verifying the Patch:

[oracle@srv1 33803476]$  /u01/app/oracle/product/19.0.0/db_home/OPatch/opatch lsinventory |egrep -i 'Patch description'
Patch description:  "OJVM RELEASE UPDATE: 19.15.0.0.220419 (33808367)"
Patch description:  "OCW RELEASE UPDATE 19.15.0.0.0 (33815596)"
Patch description:  "Database Release Update : 19.15.0.0.220419 (33806152)"
[oracle@srv1 ~]$

 

 

 

No hay comentarios:

Publicar un comentario

Oracle ACE Director Award - Deiby Gómez

Thanks #OracleACE Program for this awesome certificate recognizing the work I have done in the community for the last year. Looking forwa...