Problema
Al momento de realizar la ejecución del ./datapatch -verbose, tras un parchado, se obtiene el siguiente error:
[oracle@soyundba OPatch]$ ./datapatch -verbose
SQL Patching tool version 19.22.0.0.0 Production on Mon Jun 17 11:59:22 2024
Copyright (c) 2012, 2024, Oracle. All rights reserved.
Log file for this invocation: /oracle/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/sqlpatch/sqlpatch_232184_2024_06_17_11_59_22/sqlpatch_invocation.log
Connecting to database...OK
Gathering database info...done
Bootstrapping registry and package to current versions...done
Error: prereq checks failed!
verify_queryable_inventory returned ORA-20001: Latest xml inventory is not loaded into table
Prereq check failed, exiting without installing any patches.
Please refer to MOS Note 1609718.1 and/or the invocation log
/oracle/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/sqlpatch/sqlpatch_232184_2024_06_17_11_59_22/sqlpatch_invocation.log
for information on how to resolve the above errors.
SQL Patching tool complete on Mon Jun 17 11:59:29 2024
[oracle@soyundba OPatch]$
Solucion ORA-20001
Con el siguiente query, podemos validar el error que nos está presentando
SQL> select * from OPATCH_XML_INV;
ERROR:
ORA-29913: error in executing ODCIEXTTABLEFETCH callout
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
no rows selected
Al momento de identificar el error, para mi caso se origina debido a que el tablespace TEMP no cuenta con el tamaño suficiente para la actividad.
alter database tempfile '/oradata/soyundba/data/temp' resize 2g;
Aumentamos el tamaño del tablespace y con esto ya podríamos ejecutar nuevamente el datapatch de manera exitosa.
Te invito a seguir consultando más errores relacionados a Oracle dando clic aquí.