昨天在安装12c补丁时:当执行opatch lspatches查询当前节点的补丁包时,发现报这种错误:
这里也可以用opatch lsinv命令(该命令查看的结果显示的更加详细一些)
Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
这里从mos文档中查看的原因是找不到路径,因为解决方法是:
sh $ORACLE_HOME/oui/bin/attachHome.sh
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 32698 MB Passed
The inventory pointer is located at /etc/oraInst.loc
'AttachHome' was successful.
然后再用opatch lspatches 或者opatch lsinv进行查看就正常了。。。