oracle opatch lsinventor出现OUI-67073:Unable to create patchObject

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:442

补丁升级完成后,执行opatch lsinventory然后出现以下报错:
OUI-67073:Ls Inventory Session failed: Unable to create patchObject
问题原因及解决方法如下:
详见metalink ID: [ID 1226483.1]
Applies to:
Oracle Universal Installer - Version: 10.1.0.2 to 11.2.0.2 - Release: 10.1 to 11.2
Information in this document applies to any platform.

Symptoms:
The error OUI-67073 occurs when execute the command "opatch lsinventory" to verify the Inventory:

INFO:
Oracle Home : /usr/oracle/app/oracle/product/11.1.0
Central Inventory : /usr/oracle/app/oracle/oraInventory
from : /var/opt/oracle/oraInst.loc
OPatch version : 11.1.0.6.3
OUI version : 11.1.0.7.0
OUI location : /usr/oracle/app/oracle/product/11.1.0/oui
Log file location : /usr/oracle/app/oracle/product/11.1.0/cfgtoollogs/opatch/opatch2010-05-04_12-43-17PM.log

FINEST:OUISessionManager::instantiate()
FINEST:lockCentralInventory(): OUISessionManager::lockCentralInventory() will retry 0 times with 120-second interval to get an Inventory lock.
FINEST:OUISessionManager::lockCentralInventory() try round # 1
FINEST:OUISessionManager::setupSession()
FINEST:OUISessionManager::setupSession() instantiates a OUIInventorySession obj.
FINEST:OUISessionManager::setupSession() init. the session
FINEST:OUISessionManager::setupSession() sets up READ-ONLY session
FINEST:OUISessionManager::setupSession() done
FINEST:OUISessionManager::lockCentralInventory() set up session OK
INFO:Starting LsInventorySession at Tue May 04 12:43:18 GMT+08:00 2010
FINEST: reqVer = 10.2
FINEST: curVer = 11.1.0.7.0
FINEST: Current Ver later than required? :true
FINEST: Current Ver equals required? :false
FINEST:OracleHomeInventory::createInventoryObj()
FINEST:OracleHomeInventory::createInventoryObj() gets OUIInventorySession object
FINEST:Locker::lock()
FINEST: calling lockCentralInventory()
FINEST:OUISessionManager::getInventorySession()
FINEST:Caller Details:
Caller Name : OPatch Caller Version : 11.1.0.6.3 Requested Read-only access : true Oracle Home : /usr/oracle/app/oracle/product/11.1.0
FINEST:OUISessionManager::register()
FINEST:Registering the caller : OPatch
FINEST:OracleHomeInventory::createInventoryObj() gets OUIInstallAreaControl object
FINEST:OracleHomeInventory::createInventoryObj() gets OUIInstallInventory object
FINEST:OracleHomeInventory::createInventoryObj() gets OUIOracleHomeInfo object
FINEST:OracleHomeInventory::createInventoryObj() construction done
FINEST:LsInventory::loadAndPrintInventory()
FINEST:Retrieving inventory from Oracle Home...
FINEST:OracleHomeInventory::load()
FINEST:OracleHomeInventory::load() gets a Vector of all product entries
FINEST:OracleHomeInventory::load() gets a Vector of all one-off entries
FINEST:OracleHomeInventory::load() begins to process raw data from OUI to build up OPatch primitive classes
FINEST:PatchObject(oracleHomePath,patchID)
FINEST:PatchObject::PatchObject looks for the actions file /usr/oracle/app/oracle/product/11.1.0/inventory/oneoffs/9209238/etc/config/actions.xml
FINEST:PatchObject::PatchObject looks for the inventory file /usr/oracle/app/oracle/product/11.1.0/inventory/oneoffs/9209238/etc/config/inventory.xml
FINEST:parserXMLFile : start
INFO:

SEVERE:OUI-67028:Inventory load failed... OPatch cannot load inventory for the given Oracle Home.

FINEST:Locker::release()
FINEST:OUISessionManager::unRegister()
FINEST:Un-Registering the caller : OPatch
FINEST:LsInventory::getInstance() returns
SEVERE:OUI-67073:LsInventorySession failed: Unable to create patchObject
INFO:Finishing LsInventorySession at Tue May 04 12:43:19 GMT+08:00 2010
INFO:Stack Description: java.lang.RuntimeException: Unable to create patchObject
INFO:StackTrace: oracle.opatch.HomeInventoryHelper.getOneOffEntry(HomeInventoryHelper.java:308)
INFO:StackTrace: oracle.opatch.OracleHomeInventory.load(OracleHomeInventory.java:2155)
INFO:StackTrace: oracle.opatch.LsInventorySession.loadAndPrintInventory(LsInventorySession.java:371)
INFO:StackTrace: oracle.opatch.LsInventorySession.process(LsInventorySession.java:324)
INFO:StackTrace: oracle.opatch.OPatchSession.main(OPatchSession.java:1548)
INFO:StackTrace: oracle.opatch.OPatch.main(OPatch.java:619)
FINEST:Cleaning up the directory : "/usr/oracle/app/oracle/product/11.1.0/.patch_storage/patch_unzip"... Cause
1. From the above error log file can find the error occurs when try to look for the actions.xml and inventory.xml of Patch 9209238.
"
FINEST:PatchObject::PatchObject looks for the actions file /usr/oracle/app/oracle/product/11.1.0/inventory/oneoffs/9209238/etc/config/actions.xml
FINEST:PatchObject::PatchObject looks for the inventory file /usr/oracle/app/oracle/product/11.1.0/inventory/oneoffs/9209238/etc/config/inventory.xml
FINEST:parserXMLFile : start
"

2. Then find and check the opatch log file when applying the Patch 9209238 before.

INFO:
Oracle Home : /usr/oracle/app/oracle/product/11.1.0
Central Inventory : /usr/oracle/app/oracle/oraInventory
from : /var/opt/oracle/oraInst.loc
OPatch version : 11.1.0.6.8
OUI version : 11.1.0.7.0
OUI location : /usr/oracle/app/oracle/product/11.1.0/oui
Log file location : /usr/oracle/app/oracle/product/11.1.0/cfgtoollogs/opatch/opatch2010-03-12_18-38-16PM.log

INFO:Patch history file: /usr/oracle/app/oracle/product/11.1.0/cfgtoollogs/opatch/opatch_history.txt

INFO:Starting ApplySession at Fri Mar 12 18:38:17 GMT+08:00 2010
INFO:Starting Apply Session at Fri Mar 12 18:38:17 GMT+08:00 2010
INFO:PatchObject::PatchObject() Patch location is /ORCL/DB01/oradata/patch/9209238
INFO:PatchObject::createPatchObject() Patch location is /ORCL/DB01/oradata/patch/9209238
INFO:PatchObject::createPatchObject() patch location is /ORCL/DB01/oradata/patch/9209238
INFO:ApplySession applying interim patch '9209238' to OH '/usr/oracle/app/oracle/product/11.1.0'
INFO:Starting to apply patch to local system at Fri Mar 12 18:38:17 GMT+08:00 2010
INFO:Patch 9209238 has no conflicts/superset wiht any other patch processed till now
INFO:Checking conflicts for patch: 9209238
INFO:Checking conflicts/supersets for patch: 9209238 with patch:9209238
INFO:Start the Apply initScript. at Fri Mar 12 18:38:21 GMT+08:00 2010
INFO:Finish the Apply initScript. at Fri Mar 12 18:38:21 GMT+08:00 2010
INFO:
Running prerequisite checks...
INFO:Space Needed : 525762264
INFO:Prereq checkPatchApplicableOnCurrentPlatform. Passed for patch : 9209238

3. So can find that at that time when applying Patch 9209238, the opatch version is 11.1.0.6.8, but now when using opatch lsinventory, the opatch version is 11.1.0.6.3.

So the cause is that the current opatch version is lower than the version which was used to apply the Patch 9209238 before.

Solution
Please use the latest version of opatch.

The latest version of opatch can be downloaded and installed from patch 6880880. To help you to obtain the correct download for your platform. and RDBMS release version.

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】