问题
〜〜〜〜〜〜〜
当申请一个一次性的修补程序,出现以下错误消息:
例如对申请一次性补丁3132121
:tmp/ perl OPatch/opatch.pl apply /tmp/3132121 -invPtrLoc $ORACLE_HOME/oraInst.loc
OPatch/opatch.pl version: 1.0.0.0.59
Copyright (c) 2001,2002,2003 Oracle Corporation. All Rights Reserved.
Problems with the lock file
Lock file exists, details are:
Interim Patch is holding the lock from this patch 3132121,
probably due to previous unsuccessful operation
ERROR: OPatch failed during pre-reqs check
或
opatch apply -invPtrLoc $ORACLE_HOME/oraInst.loc
OPatch/opatch.pl version: 1.0.0.0.59
Copyright (c) 2001,2002,2003 Oracle Corporation. All Rights Reserved.
Problems with the lock file
Lock file exists, details are:
Interim Patch is holding the lock from this patch 3132121,
probably due to previous unsuccessful operation
ERROR: OPatch failed during pre-reqs check
解决:
如果出现上述错误,请在$ ORACLE_HOME /.patch_storage目录下检查patch_locked文件,如果patch_locked文件是存在的,那么重命名或移动它,然后再安装补丁。
然后应用该修补程序。
:ls -la $ORACLE_HOME/.patch_storage.
上面指令的输出如下:
.
total 48
drwxr-xr-x 4 aprdbms aprdbms 4096 Nov 18 05:15 ./
drwxr-xr-x 57 aprdbms aprdbms 4096 Nov 5 04:42 ../
drwxr-xr-x 3 aprdbms aprdbms 4096 Nov 18 05:15 3132121/
drwxr-xr-x 3 aprdbms aprdbms 4096 Oct 13 01:25 3166144/
-rw-r--r-- 1 aprdbms aprdbms 249 Nov 18 05:13 patch_free
-rw-r--r-- 1 aprdbms aprdbms 243 Oct 10 10:11 patch_locked
现在重命名或者移动patch_locked文件,然后,启动安装一次性补丁。
解释:
当补丁被应用的时候,一个带有补丁应用信息的patch_locked文件就被创建了。一旦补丁应用完成了,这个文件就应该被删除这个文件在opatch内部工作是必需的,客户不该为此而烦恼。