错误日志:
[May 15, 2013 9:16:19 PM] OPatch invoked as follows: 'apply -invPtrLoc /opt/oracle/datasoft/oraInst.loc '
[May 15, 2013 9:16:19 PM] OUI-67077:
Oracle Home : /opt/oracle/datasoft
Central Inventory : /opt/oraInventory
from : /opt/oracle/datasoft/oraInst.loc
OPatch version : 11.2.0.3.4
OUI version : 11.2.0.3.0
OUI location : /opt/oracle/datasoft/oui
Log file location : /opt/oracle/datasoft/cfgtoollogs/opatch/opatch2013-05-15_21-16-19PM_1.log
[May 15, 2013 9:16:19 PM] Patch history file: /opt/oracle/datasoft/cfgtoollogs/opatch/opatch_history.txt
[May 15, 2013 9:16:22 PM] Verifying environment and performing prerequisite checks...
[May 15, 2013 9:16:22 PM] Ignoring file "/opt/oracle/datasoft/16056266/README.html" in the patch directory.
[May 15, 2013 9:16:22 PM] Ignoring file "/opt/oracle/datasoft/16056266/README.txt" in the patch directory.
[May 15, 2013 9:16:22 PM] Ignoring file "/opt/oracle/datasoft/16056266/patchmd.xml" in the patch directory.
[May 15, 2013 9:16:23 PM] Checking conflict among patches...
[May 15, 2013 9:16:23 PM] Patch ID 16056266
[May 15, 2013 9:16:23 PM] Patches that conflict: [ ]
[May 15, 2013 9:16:23 PM] Checking conflicts for patch : 16056266
[May 15, 2013 9:16:23 PM] Checking if Oracle Home has components required by patches...
[May 15, 2013 9:16:23 PM] Check if patch "13343438" is a no-op patch.
[May 15, 2013 9:16:23 PM] Check if patch "13696216" is a no-op patch.
[May 15, 2013 9:16:23 PM] Check if patch "13923374" is a no-op patch.
[May 15, 2013 9:16:23 PM] Opt. comp. not in OH inventory: oracle.network.cman, 11.2.0.3.0
[May 15, 2013 9:16:23 PM] [ oracle.network.cman, 11.2.0.3.0 ]
[May 15, 2013 9:16:23 PM] Check if patch "14275605" is a no-op patch.
[May 15, 2013 9:16:23 PM] Opt. comp. not in OH inventory: oracle.precomp.lang, 11.2.0.3.0
[May 15, 2013 9:16:23 PM] [ oracle.precomp.lang, 11.2.0.3.0 ]
[May 15, 2013 9:16:23 PM] Check if patch "14727310" is a no-op patch.
[May 15, 2013 9:16:23 PM] Check if patch "16056266" is a no-op patch.
[May 15, 2013 9:16:23 PM] Opt. comp. not in OH inventory: oracle.network.cman, 11.2.0.3.0
[May 15, 2013 9:16:23 PM] [ oracle.network.cman, 11.2.0.3.0 ]
[May 15, 2013 9:16:23 PM] Running prerequisite checks...
[May 15, 2013 9:16:23 PM] Patch "13343438" is ignored as it is not a "Fusion Applications patch".
[May 15, 2013 9:16:23 PM] Patch "13696216" is ignored as it is not a "Fusion Applications patch".
[May 15, 2013 9:16:23 PM] Patch "13923374" is ignored as it is not a "Fusion Applications patch".
[May 15, 2013 9:16:23 PM] Patch "14275605" is ignored as it is not a "Fusion Applications patch".
[May 15, 2013 9:16:23 PM] Patch "14727310" is ignored as it is not a "Fusion Applications patch".
[May 15, 2013 9:16:23 PM] Patch "16056266" is ignored as it is not a "Fusion Applications patch".
[May 15, 2013 9:16:23 PM] Check if patch "13343438" is a no-op patch.
[May 15, 2013 9:16:23 PM] Check if patch "13696216" is a no-op patch.
[May 15, 2013 9:16:23 PM] Check if patch "13923374" is a no-op patch.
[May 15, 2013 9:16:23 PM] Opt. comp. not in OH inventory: oracle.network.cman, 11.2.0.3.0
[May 15, 2013 9:16:23 PM] [ oracle.network.cman, 11.2.0.3.0 ]
[May 15, 2013 9:16:23 PM] Check if patch "14275605" is a no-op patch.
[May 15, 2013 9:16:23 PM] Opt. comp. not in OH inventory: oracle.precomp.lang, 11.2.0.3.0
[May 15, 2013 9:16:23 PM] [ oracle.precomp.lang, 11.2.0.3.0 ]
[May 15, 2013 9:16:23 PM] Check if patch "14727310" is a no-op patch.
[May 15, 2013 9:16:23 PM] Check if patch "16056266" is a no-op patch.
[May 15, 2013 9:16:23 PM] Opt. comp. not in OH inventory: oracle.network.cman, 11.2.0.3.0
[May 15, 2013 9:16:23 PM] [ oracle.network.cman, 11.2.0.3.0 ]
[May 15, 2013 9:16:23 PM] None of the selected patches are no-op. patches..
[May 15, 2013 9:16:23 PM] Space Needed : 237.072MB
[May 15, 2013 9:16:23 PM] Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 13343438
[May 15, 2013 9:16:23 PM] Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 13696216
[May 15, 2013 9:16:23 PM] Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 13923374
[May 15, 2013 9:16:23 PM] Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 14275605
[May 15, 2013 9:16:24 PM] Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 14727310
[May 15, 2013 9:16:24 PM] Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 16056266
[May 15, 2013 9:16:24 PM] Start fuser command /sbin/fuser /opt/oracle/datasoft/bin/oracle at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Finish fuser command /sbin/fuser /opt/oracle/datasoft/bin/oracle at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Start fuser command /sbin/fuser /opt/oracle/datasoft/bin/asmcmdcore at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Finish fuser command /sbin/fuser /opt/oracle/datasoft/bin/asmcmdcore at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Start fuser command /sbin/fuser /opt/oracle/datasoft/bin/renamedg at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Finish fuser command /sbin/fuser /opt/oracle/datasoft/bin/renamedg at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Start fuser command /sbin/fuser /opt/oracle/datasoft/bin/nid at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Finish fuser command /sbin/fuser /opt/oracle/datasoft/bin/nid at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Start fuser command /sbin/fuser /opt/oracle/datasoft/bin/tnslsnr at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Finish fuser command /sbin/fuser /opt/oracle/datasoft/bin/tnslsnr at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Start fuser command /sbin/fuser /opt/oracle/datasoft/bin/proc at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Finish fuser command /sbin/fuser /opt/oracle/datasoft/bin/proc at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Start fuser command /sbin/fuser /opt/oracle/datasoft/bin/rman at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Finish fuser command /sbin/fuser /opt/oracle/datasoft/bin/rman at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Start fuser command /sbin/fuser /opt/oracle/datasoft/bin/wrap at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Finish fuser command /sbin/fuser /opt/oracle/datasoft/bin/wrap at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:24 PM] Start fuser command /sbin/fuser /opt/oracle/datasoft/bin/plshprof at Wed May 15 21:16:24 CST 2013
[May 15, 2013 9:16:25 PM] Finish fuser command /sbin/fuser /opt/oracle/datasoft/bin/plshprof at Wed May 15 21:16:25 CST 2013
[May 15, 2013 9:16:25 PM] Start fuser command /sbin/fuser /opt/oracle/datasoft/lib/libclntsh.so.11.1 at Wed May 15 21:16:25 CST 2013
[May 15, 2013 9:16:25 PM] Finish fuser command /sbin/fuser /opt/oracle/datasoft/lib/libclntsh.so.11.1 at Wed May 15 21:16:25 CST 2013
[May 15, 2013 9:16:25 PM] Following executables are active :
/opt/oracle/datasoft/lib/libclntsh.so.11.1
[May 15, 2013 9:16:25 PM] Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
Following executables are active :
/opt/oracle/datasoft/lib/libclntsh.so.11.1
[May 15, 2013 9:16:25 PM] Start fuser command /sbin/fuser /opt/oracle/datasoft/bin/amdu at Wed May 15 21:16:25 CST 2013
[May 15, 2013 9:16:25 PM] Finish fuser command /sbin/fuser /opt/oracle/datasoft/bin/amdu at Wed May 15 21:16:25 CST 2013
[May 15, 2013 9:16:25 PM] Start fuser command /sbin/fuser /opt/oracle/datasoft/bin/kfed at Wed May 15 21:16:25 CST 2013
[May 15, 2013 9:16:25 PM] Finish fuser command /sbin/fuser /opt/oracle/datasoft/bin/kfed at Wed May 15 21:16:25 CST 2013
[May 15, 2013 9:16:25 PM] OUI-67073:UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
[May 15, 2013 9:16:25 PM] Finishing UtilSession at Wed May 15 21:16:25 CST 2013
[May 15, 2013 9:16:25 PM] Log file location: /opt/oracle/datasoft/cfgtoollogs/opatch/opatch2013-05-15_21-16-19PM_1.log
[May 15, 2013 9:16:25 PM] Stack Description: java.lang.RuntimeException: Prerequisite check "CheckActiveFilesAndExecutables" failed.
[May 15, 2013 9:16:25 PM] StackTrace: oracle.opatch.OPatchSessionHelper.runApplyPrereqs(OPatchSessionHelper.java:6420)
[May 15, 2013 9:16:25 PM] StackTrace: oracle.opatch.opatchutil.NApply.process(NApply.java:1587)
[May 15, 2013 9:16:25 PM] StackTrace: oracle.opatch.opatchutil.OUSession.napply(OUSession.java:1136)
[May 15, 2013 9:16:25 PM] StackTrace: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[May 15, 2013 9:16:25 PM] StackTrace: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[May 15, 2013 9:16:25 PM] StackTrace: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[May 15, 2013 9:16:25 PM] StackTrace: java.lang.reflect.Method.invoke(Method.java:592)
[May 15, 2013 9:16:25 PM] StackTrace: oracle.opatch.UtilSession.process(UtilSession.java:322)
[May 15, 2013 9:16:25 PM] StackTrace: oracle.opatch.OPatchSession.main(OPatchSession.java:2346)
[May 15, 2013 9:16:25 PM] StackTrace: oracle.opatch.OPatch.main(OPatch.java:613)
问题分析:
注意这句话:[May 15, 2013 9:16:25 PM] Prerequisite check "CheckActiveFilesAndExecutables" failed. The details are:
可以发现虽然数据库关掉了,监听也关掉了,但是在ps -ef |grep oracle 查看进程的时候,发现还存在很多的进程,那么要么杀死这些进程,要么重新启动服务器。
问题得到解决。
在论坛有个朋友是这样给我回复的:可能是有人用asmcmd但没有退出,可以ps -ef | grep asmcmd 看下
或者ps -ef | grep oracle (假设安装用户是oracle)看下当前所有oracle用户的进程,一般这种时候应该很干净的