Erro na validação do Patch 27494830 em Oracle Grid Infrastructure 18cR3 em Oracle Linux 7.7.

Erro ocorre ao tentar executar o opatchauto logado com o usuário grid.

[grid@rac01 bin]$ opatchauto apply /home/grid/27494830/27494830/ -analyze

OPatchauto session is initiated at Sat Mar 28 15:33:42 2020
/u01/grid/product/18.3.0/home1/opatchautocfg/db/dbtmp/patchinginfo_rac01.properties (No such file or directory)

OPatchauto session completed at Sat Mar 28 15:33:43 2020
Time taken to complete the session 0 minute, 1 second

opatchauto bootstrapping failed with error code 255.

Um indício da causa raíz é reportado logo acima:

/u01/grid/product/18.3.0/home1/opatchautocfg/db/dbtmp/patchinginfo_rac01.properties (No such file or directory)

Inicialmente pode parecer que esse arquivo deveria existir antes de executar o opatchauto, mas na verdade é criado pelo próprio. O erro ocorre porque o opatchauto não conseguiu criar o arquivo antes de utilizá-lo.

O Grid Home pertence ao root:

[grid@rac01 home1]$ cd $ORACLE_HOME
[grid@rac01 home1]$ cd ..
[grid@rac01 18.3.0]$ ll
drwxr-xr-x. 88 root oinstall 4096 Mar 28 14:55 home1

O opatchauto deve ser executado como root:

[grid@rac01 18.3.0]$ su root
Password: 
[root@rac01 home1]# opatchauto apply /home/grid/27494830/27494830/ -analyze

OPatchauto session is initiated at Sat Mar 28 15:40:33 2020

System initialization log file is /u01/grid/product/18.3.0/home1/cfgtoollogs/opatchautodb/systemconfig2020-03-28_03-40-35PM.log.

Session log file is /u01/grid/product/18.3.0/home1/cfgtoollogs/opatchauto/opatchauto2020-03-28_03-40-47PM.log
The id for this session is K4GS

Executing OPatch prereq operations to verify patch applicability on home /u01/grid/product/18.3.0/home1
Patch applicability verified successfully on home /u01/grid/product/18.3.0/home1

OPatchAuto successful.

--------------------------------Summary--------------------------------

Analysis for applying patches has completed successfully:

Host:rac01
CRS Home:/u01/grid/product/18.3.0/home1
Version:18.0.0.0.0


==Following patches were SUCCESSFULLY analyzed to be applied:

Patch: /home/grid/27494830/27494830
Log: /u01/grid/product/18.3.0/home1/cfgtoollogs/opatchauto/core/opatch/opatch2020-03-28_15-40-51PM_1.log



OPatchauto session completed at Sat Mar 28 15:40:53 2020
Time taken to complete the session 0 minute, 20 seconds
[root@rac01 home1]#

Referências:

Oracle Clusterware 18 Release (18.3.0.0.180717ACFSRU)

Grid Infrastructure Installation and Upgrade Guide for Linux

Leave a Reply

Discover more from Blog do Dibiei

Subscribe now to keep reading and get access to the full archive.

Continue reading