错误日志:
[Aug 9, 2017 10:29:21 AM] Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are: Following executables are active :
/opt/oracle/oradb/home/bin/tnslsnr
/opt/oracle/oradb/home/lib/libclntsh.so.11.1
[Aug 9, 2017 10:29:21 AM] Start fuser command /sbin/fuser /opt/oracle/oradb/home/bin/amdu at Wed Aug 09 10:29:21 CST 2017
[Aug 9, 2017 10:29:21 AM] Finish fuser command /sbin/fuser /opt/oracle/oradb/home/bin/amdu at Wed Aug 09 10:29:21 CST 2017
[Aug 9, 2017 10:29:21 AM] Start fuser command /sbin/fuser /opt/oracle/oradb/home/bin/kfed at Wed Aug 09 10:29:21 CST 2017
[Aug 9, 2017 10:29:21 AM] Finish fuser command /sbin/fuser /opt/oracle/oradb/home/bin/kfed at Wed Aug 09 10:29:21 CST 2017
[Aug 9, 2017 10:29:21 AM] Start fuser command /sbin/fuser /opt/oracle/oradb/home/bin/proc at Wed Aug 09 10:29:21 CST 2017
[Aug 9, 2017 10:29:21 AM] Finish fuser command /sbin/fuser /opt/oracle/oradb/home/bin/proc at Wed Aug 09 10:29:21 CST 2017
[Aug 9, 2017 10:29:21 AM] Start fuser command /sbin/fuser /opt/oracle/oradb/home/bin/wrap at Wed Aug 09 10:29:21 CST 2017
[Aug 9, 2017 10:29:21 AM] Finish fuser command /sbin/fuser /opt/oracle/oradb/home/bin/wrap at Wed Aug 09 10:29:21 CST 2017
[Aug 9, 2017 10:29:21 AM] OUI-67073:UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
[Aug 9, 2017 10:29:21 AM] Finishing UtilSession at Wed Aug 09 10:29:21 CST 2017
[Aug 9, 2017 10:29:21 AM] Log file location: /opt/oracle/oradb/home/cfgtoollogs/opatch/opatch2017-08-09_10-29-17AM_1.log
[Aug 9, 2017 10:29:21 AM] Stack Description: java.lang.RuntimeException: Prerequisite check "CheckActiveFilesAndExecutables" failed.
[Aug 9, 2017 10:29:21 AM] StackTrace: oracle.opatch.OPatchSessionHelper.runApplyPrereqs(OPatchSessionHelper.java:6420)
[Aug 9, 2017 10:29:21 AM] StackTrace: oracle.opatch.opatchutil.NApply.process(NApply.java:1621)
[Aug 9, 2017 10:29:21 AM] StackTrace: oracle.opatch.opatchutil.OUSession.napply(OUSession.java:1127)
[Aug 9, 2017 10:29:21 AM] StackTrace: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[Aug 9, 2017 10:29:21 AM] StackTrace: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[Aug 9, 2017 10:29:21 AM] StackTrace: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[Aug 9, 2017 10:29:21 AM] StackTrace: java.lang.reflect.Method.invoke(Method.java:592)
[Aug 9, 2017 10:29:21 AM] StackTrace: oracle.opatch.UtilSession.process(UtilSession.java:322)
[Aug 9, 2017 10:29:21 AM] StackTrace: oracle.opatch.OPatchSession.main(OPatchSession.java:2346)
[Aug 9, 2017 10:29:21 AM] StackTrace: oracle.opatch.OPatch.main(OPatch.java:583)
解决办法:
- 停止监听
- kill掉与oracle相关的进程。
异常:
- 如果ps -ef |grep oracle检查信息如下,并没有oracle进程存在。
oracle 5151 9981 0 19:53 pts/0 00:00:00 su - oracle
oracle 5152 5151 0 19:53 pts/0 00:00:00 -bash
oracle 22762 5152 0 20:18 pts/0 00:00:00 ps -ef
oracle 22763 5152 0 20:18 pts/0 00:00:00 grep oracle
使用root用户去执行lsof命令指定到最上一层的目录去查。
然后再kill掉。