在windos 上打单实例补丁,报UtilSession 失败: Lock file left bya different patch, OPatch will not try re-using the lock file.的错误:
C:\Users\Administrator>cd E:\26581376\ C:\Users\Administrator>e: E:\26581376>E:\Administrator\product\11.2.0\dbhome_1\OPatch\opatchapply Oracle 中间补丁程序安装程序版本11.2.0.3.12 版权所有 (c) 2017, Oracle Corporation。保留所有权利。 Oracle Home :E:\Administrator\product\11.2.0\dbhome_1 Central Inventory : C:\ProgramFiles\Oracle\Inventory from : n/a OPatch version : 11.2.0.3.12 OUI version : 11.2.0.4.0 Log file location :E:\Administrator\product\11.2.0\dbhome_1\cfgtoollogs\opatch\26581376_Nov_20_2017_17_56_18\apply2017-11-20_17-56-17下午_1.log UtilSession 失败: Lock file left bya different patch, OPatch will not try re-using the lock file. Log file location: E:\Administrator\product\11.2.0\dbhome_1\cfgtoollogs\opatch\26581376_Nov_20_2017_17_56_18\apply2017-11-20_17-56-17下午_1.log OPatch failed with error code = 73
E:\26581376> 查看报错日志: [2017-11-20 17:56:28] Patch history file:E:\Administrator\product\11.2.0\dbhome_1\cfgtoollogs\opatch\opatch_history.txt [2017-11-20 17:56:34] OUI-67073:UtilSession 失败: Lock fileleft by a different patch, OPatch will not try re-using the lock file. [2017-11-20 17:56:34] Finishing UtilSession at Mon Nov 2017:56:34 CST 2017 [2017-11-20 17:56:34] Log file location:E:\Administrator\product\11.2.0\dbhome_1\cfgtoollogs\opatch\26581376_Nov_20_2017_17_56_18\apply2017-11-20_17-56-17下午_1.log [2017-11-20 17:56:34] 堆栈说明:java.lang.SecurityException: Lock file left by a different patch, OPatch willnot try re-using the lock file. [2017-11-20 17:56:34] 堆栈跟踪: oracle.opatch.Locker.lock(Locker.java:476) [2017-11-20 17:56:34] 堆栈跟踪:oracle.opatch.OracleHomeInventory.lock(OracleHomeInventory.java:2435) [2017-11-20 17:56:34] 堆栈跟踪:oracle.opatch.OracleHomeInventory.createInventoryObj(OracleHomeInventory.java:2557) [2017-11-20 17:56:34] 堆栈跟踪:oracle.opatch.OracleHomeInventory.getInstance(OracleHomeInventory.java:1025) [2017-11-20 17:56:34] 堆栈跟踪:oracle.opatch.GenericInventory.createInstance(GenericInventory.java:41) [2017-11-20 17:56:34] 堆栈跟踪: oracle.opatch.UtilSession.getGenericInventory(UtilSession.java:105) [2017-11-20 17:56:34] 堆栈跟踪:oracle.opatch.UtilSession.process(UtilSession.java:230) [2017-11-20 17:56:34] 堆栈跟踪:oracle.opatch.OPatchSession.main(OPatchSession.java:2580) [2017-11-20 17:56:34] 堆栈跟踪:oracle.opatch.OPatch.main(OPatch.java:634) 解决办法:是因为之前我在执行补丁应用时做了取消操作,导致已经生产了.patch_storage目录,需要找到oracle_home下面的隐藏目录.patch_storage,修改其名字或者删除其目录。(修改为.patch_storage.bak) |