OPatch cannot find a valid oraInst.loc file to locate Central Inventory
环境概述:
操作系统: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