OPATCHAUTO-72126

Este post também está disponível em: English

Problema:

Na tentativa de executar opatchauto outofplace, a execução falhou apresentando o erro abaixo:

sudo $ORACLE_HOME/OPatch/opatchauto apply ${PATCH_TOP} -outofplace -silent ./clone.properties

OPatchauto session is initiated at Thu Aug 22 11:09:16 2024

System initialization log file is /u01/app/19.21.0.0/grid/cfgtoollogs/opatchautodb/systemconfig2024-08-22_11-09-18AM.log.

Session log file is /u01/app/19.21.0.0/grid/cfgtoollogs/opatchauto/opatchauto2024-08-22_11-09-23AM.log
The id for this session is KS9E
OPATCHAUTO-72126: Cannot execute out of place patching.
OPATCHAUTO-72126: Clone home path specified in mapping file already exists on host drslcdboraprp1.
OPATCHAUTO-72126: Please correct clone path mapping file  and re-run out of place patching operation.
OPatchAuto failed.

OPatchauto session completed at Thu Aug 22 11:09:41 2024
Time taken to complete the session 0 minute, 26 seconds

 opatchauto failed with error code 42
SQL

Solução:

cat clone.properties
/u01/app/19.21.0.0/grid=/u01/app/19.23.0.0/grid
/u01/app/oracle/product/19.0.0.0/dbhome_1=/u01/app/oracle/product/19.23.0.0/dbhome_1
SQL

Uma das ORACLE_HOME ja existia no servidor.

ls -ltr /u01/app/oracle/product/19.23.0.0/dbhome_1
total 124996
-rw-r--r--  1 oracle oinstall       852 Aug 18  2015 env.ora
-rw-r--r--  1 oracle oinstall      2927 Oct 14  2016 schagent.conf
-rwxr-x---  1 oracle oinstall      1783 Mar  8  2017 runInstaller
drwxr-x---  7 oracle oinstall      4096 Apr 17  2019 xdk
drwxr-xr-x  3 oracle oinstall      4096 Apr 17  2019 wwg
drwxr-xr-x  4 oracle oinstall      4096 Apr 17  2019 usm
.
.
.
SQL

O diretório acima, é onde ficará a nova ORACLE_HOME, porém ja consta arquivos nela.

cat /u01/app/oraInventory/ContentsXML/inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2024, Oracle and/or its affiliates.
All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>12.2.0.7.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="agent13c1" LOC="/oem_agent/agent_13.4.0.0.0" TYPE="O" IDX="3"/>
<HOME NAME="agent13c2" LOC="/oem_agent/agent_13.5.0.0.0" TYPE="O" IDX="4"/>
<HOME NAME="OraDB19Home1" LOC="/u01/app/oracle/product/19.0.0.0/dbhome_1" TYPE="O" IDX="2"/>
<HOME NAME="OraHome1" LOC="/oem_agent/GoldImage_OEM_13.5_33355570/agent_13.5.0.0.0" TYPE="O" IDX="5"/>
<HOME NAME="Orasiha19c_home1_9656" LOC="/u01/app/19.21.0.0/grid" TYPE="O" IDX="6" CRS="true"/>
<HOME NAME="OraGI19Home1" LOC="/u01/app/19.0.0.0/grid" TYPE="O" IDX="1" REMOVED="T"/>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>
SQL

Verifiquei se a ORACLE_HOME nova, estava registrada no inventory.
Como não estava apaguei o diretório e executei novamente o comando.

Artigo anterior

ORA-01996: GRANT failed: password file ” is full

Próximo Artigo

Limpeza da biblioteca de software OEM

Escreva um comentário

Deixe um comentário

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