I am applying the quarterly patch for 19c RDBMS, I tried using napply but failed, but somehow it corrupted the inventory though nothing applied. further apply and lsinventory command ran into error like this:
$ ./OPatch/opatch lsinventory
Oracle Interim Patch Installer version 12.2.0.1.21
Copyright (c) 2020, Oracle Corporation. All rights reserved.
Oracle Home : /u02/app/oracle/19.0.0
Central Inventory : /u01/app/oraInventory
from : /u02/app/oracle/19.0.0/oraInst.loc
OPatch version : 12.2.0.1.21
OUI version : 12.2.0.7.0
Log file location : /u02/app/oracle/19.0.0/cfgtoollogs/opatch/opatch2020-09-08_13-35-59PM_1.log
Lsinventory Output file location : /u02/app/oracle/19.0.0/cfgtoollogs/opatch/lsinv/lsinventory2020-09-08_13-35-59PM.txt
--------------------------------------------------------------------------------
Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
LsInventorySession failed: Unable to create patchObject
Possible causes are:
ORACLE_HOME/inventory/oneoffs/31219897 is corrupted. PatchObject constructor: Input file "/u02/app/oracle/19.0.0/inventory/oneoffs/31219897/etc/config/actions" or "/u02/app/oracle/19.0.0/inventory/oneoffs/31219897/etc/config/inventory" does not exist.
OPatch failed with error code 73
so where is the error come from? search the xml file and found that it's recorded in this file:
/u02/app/oracle/19.0.0/inventory/ContentsXML/oui-patch.xml
remove the reference of patch 31219897 from oui-patch.xml, now lsinventory and apply works.
Comments
Post a Comment