暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

opatch The lock file exists in ORACLE_HOME/.patch_storage

章芋文 2019-06-19
1726

问题描述

打补丁报如下错: 

i3fwq:/oracle>opatch apply -oh $ORACLE_HOME -local /precise/oracle/soft/psu/17540582/ 
Oracle Interim Patch Installer version 11.2.0.3.6 
Copyright (c) 2013, Oracle Corporation.  All rights reserved. 


Oracle Home       : /precise/oracle/app/oracle/product/11.2.0/db 
Central Inventory : /oracle/app10/oracle/oraInventory 
   from           : /precise/oracle/app/oracle/product/11.2.0/db/oraInst.loc 
OPatch version    : 11.2.0.3.6 
OUI version       : 11.2.0.3.0 
Log file location : /precise/oracle/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2014-03-07_13-53-01PM_1.log 

OPatchSession cannot load inventory for the given Oracle Home /precise/oracle/app/oracle/product/11.2.0/db. Possible causes are: 
   No read or write permission to ORACLE_HOME/.patch_storage 
   Central Inventory is locked by another OUI instance 
   No read permission to Central Inventory 
   The lock file exists in ORACLE_HOME/.patch_storage 
   The Oracle Home does not exist in Central Inventory 

UtilSession failed: Lock file left by a different patch, OPatch will not try re-using the lock file. 
Log file location: /precise/oracle/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2014-03-07_13-53-01PM_1.log 

OPatch failed with error code 73


专家解答

用root将patch_locked删除即可 

bash-3.2# cd .patch_storage/ 
bash-3.2# ls 
13343438_Dec_28_2011_01_17_39   14727310_Dec_31_2012_01_47_37   17592127_Jan_8_2014_23_02_20    patch_free 
13696216_Apr_8_2012_21_52_22    16056266_Mar_13_2013_05_49_56   LatestOPatchSession.properties  patch_locked 
13923374_Jun_14_2012_23_16_11   16619892_Jun_25_2013_08_41_59   NApply                          record_inventory.txt 
14275605_Oct_3_2012_23_27_54    16902043_Sep_26_2013_03_40_47   interim_inventory.txt           verify 
bash-3.2# mv patch_locked patch_locked_bak


「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论