先写解决办法:
sh /home/weblogic/weblogic1213/oui/bin/attachHome.sh
$ /home/weblogic/weblogic1213/OPatch/opatch apply
Oracle 中间补丁程序安装程序版本 13.2.0.0.0
版权所有 (c) 2014, Oracle Corporation。保留所有权利。
Oracle Home : /home/weblogic/weblogic1213
Central Inventory : /home/weblogic/tmp/.inventory
from : /home/weblogic/weblogic1213/oraInst.loc
OPatch version : 13.2.0.0.0
OUI version : 13.2.0.0.0
Log file location : /home/weblogic/weblogic1213/cfgtoollogs/opatch/30857795_May_03_2020_21_29_36/apply2020-05-03_21-29-26下午_1.log
OPatch detects the Middleware Home as "/home/weblogic/weblogic1213"
5月 03, 2020 9:29:41 下午 oracle.sysman.oii.oiii.OiiiInstallAreaControl initAreaControl
参考: Install area Control created with access level 0
Applying interim patch '30857795' to OH '/home/weblogic/weblogic1213'
Verifying environment and performing prerequisite checks...
List of Homes on this system:
[ Error during Oracle Home discovery Phase]. Detail: OPatchSession 无法加载指定 Oracle 主目录 /home/weblogic/weblogic1213 的产品清单。原因可能是:
对 ORACLE_HOME/.patch_storage 没有读权限或写权限
其它 OUI 实例锁定了主产品清单
对主产品清单没有读权限
锁文件位于 ORACLE_HOME/.patch_storage 中
主产品清单中不存在 Oracle 主目录
[ Error during Oracle Home discovery Phase]. Detail: OPatch 失败: ApplySession failed to prepare the system. OracleHomeInventory gets null oracleHomeInfo
Log file location: /home/weblogic/weblogic1213/cfgtoollogs/opatch/30857795_May_03_2020_21_29_36/apply2020-05-03_21-29-26下午_1.log
Recommended actions: Please make sure no other OPatch or OUI processes is running. Try running $ORACLE_HOME/oui/bin/runInstsaller.
OPatch failed with error code 22