OPatch cannot find a valid oraInst.loc file to locate Central Inventory

小年青。發表於2024-06-25

環境概述:

作業系統:AIX 6.1
Oracle軟體版本:11.2.0.3
OPatch version:11.2.0.3.21(使用的是臨時補丁)

故障現象

oracle@pwr750e2:/oracle/product/11.2.0.3/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./ 
Oracle Interim Patch Installer version 11.2.0.3.21  
Copyright (c) 2024, Oracle Corporation.  All rights reserved.  
  
PREREQ session
 
Oracle Home       : /oracle/product/11.2.0.3
Central Inventory : n/a  
   from           : /oracle/product/11.2.0.3/oraInst.loc
OPatch version    : 11.2.0.3.21
OUI version       : 11.2.0.3.0  
Log file location : /oracle/product/11.2.0.3/cfgtoollogs/opatch/opatch2024-06-25_12-16-03PM_1.log 
  
OPatch cannot find a valid oraInst.loc file to locate Central Inventory.  
  
OPatch failed with error code 104  

該問題是由於opatch找不到oraInst.loc檔案所導致,在命令後指名具體路徑即可

解決方法如下:

oracle@pwr750e2:/oracle/product/11.2.0.3/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./ -invPtrLoc /etc/oraInst.loc

相關文章