OPatch报错 Prerequisite check "CheckActiveFilesAndExecutables" failed

简介: Prerequisite check "CheckActiveFilesAndExecutables" failed 问题背景:    我们在进行数据库打补丁Optatch的时候,突然报错CheckActiveFilesAndExecutables,导致补丁无法进行应用下去。

Prerequisite check "CheckActiveFilesAndExecutables" failed

问题背景:
    我们在进行数据库打补丁Optatch的时候,突然报错CheckActiveFilesAndExecutables,导致补丁无法进行应用下去。

问题现象:

[oracle@db01 18522509]$ /home/oracle/OPatch/opatch apply
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation.  All rights reserved.
Oracle Home       : /DBSoft/Product/11.2.4/db_1
Central Inventory : /DBSoft/oraInventory
   from           : /DBSoft/Product/11.2.4/db_1/oraInst.loc
OPatch version    : 11.2.0.3.6
OUI version       : 11.2.0.4.0
Log file location : /DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-09_05-06-13AM_1.log
Verifying environment and performing prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
Following executables are active :
/DBSoft/Product/11.2.4/db_1/bin/oracle
/DBSoft/Product/11.2.4/db_1/lib/libclntsh.so.11.1
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: /DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-09_05-06-13AM_1.log
OPatch failed with error code 73

查看OPatch日志 :
[oracle@db01 OPatch]$ cat /DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-09_05-06-13AM_1.log
[Oct 9, 2014 5:06:13 AM]     OPatch invoked as follows: 'apply -invPtrLoc /DBSoft/Product/11.2.4/db_1/oraInst.loc '
[Oct 9, 2014 5:06:13 AM]     OUI-67077:
                             Oracle Home       : /DBSoft/Product/11.2.4/db_1
                             Central Inventory : /DBSoft/oraInventory
                                from           : /DBSoft/Product/11.2.4/db_1/oraInst.loc
                             OPatch version    : 11.2.0.3.6
                             OUI version       : 11.2.0.4.0
                             OUI location      : /DBSoft/Product/11.2.4/db_1/oui
                             Log file location : /DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-09_05-06-13AM_1.log
[Oct 9, 2014 5:06:13 AM]     Patch history file: /DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch_history.txt
[Oct 9, 2014 5:06:16 AM]     Verifying environment and performing prerequisite checks...
[Oct 9, 2014 5:06:16 AM]     Ignoring file "/home/oracle/18522509/README.html" in the patch directory.
[Oct 9, 2014 5:06:16 AM]     Ignoring file "/home/oracle/18522509/README.txt" in the patch directory.
[Oct 9, 2014 5:06:16 AM]     Ignoring file "/home/oracle/18522509/patchmd.xml" in the patch directory.
[Oct 9, 2014 5:06:17 AM]     Checking conflict among patches...
[Oct 9, 2014 5:06:17 AM]     Patch ID  18522509
[Oct 9, 2014 5:06:17 AM]     Patches that conflict: [  ]
[Oct 9, 2014 5:06:17 AM]     Checking conflicts for patch : 18522509
[Oct 9, 2014 5:06:17 AM]     Checking if Oracle Home has components required by patches...
[Oct 9, 2014 5:06:17 AM]     Check if patch "17478514"  is a no-op patch.
[Oct 9, 2014 5:06:18 AM]     Check if patch "18031668"  is a no-op patch.
[Oct 9, 2014 5:06:18 AM]     Check if patch "18522509"  is a no-op patch.
[Oct 9, 2014 5:06:18 AM]     Running prerequisite checks...
[Oct 9, 2014 5:06:18 AM]     Patch "17478514" is ignored as it is not a "Fusion Applications patch".
[Oct 9, 2014 5:06:18 AM]     Patch "18031668" is ignored as it is not a "Fusion Applications patch".
[Oct 9, 2014 5:06:18 AM]     Patch "18522509" is ignored as it is not a "Fusion Applications patch".
[Oct 9, 2014 5:06:18 AM]     Check if patch "17478514"  is a no-op patch.
[Oct 9, 2014 5:06:18 AM]     Check if patch "18031668"  is a no-op patch.
[Oct 9, 2014 5:06:18 AM]     Check if patch "18522509"  is a no-op patch.
[Oct 9, 2014 5:06:18 AM]     None of the selected patches are no-op. patches..
[Oct 9, 2014 5:06:19 AM]     Space Needed : 328.875MB
[Oct 9, 2014 5:06:19 AM]     Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 17478514
[Oct 9, 2014 5:06:19 AM]     Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 18031668
[Oct 9, 2014 5:06:19 AM]     Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 18522509
[Oct 9, 2014 5:06:19 AM]     Start fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/oracle at Thu Oct 09 05:06:19 CST 2014
[Oct 9, 2014 5:06:20 AM]     Finish fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/oracle at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Start fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/amdu at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Finish fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/amdu at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Start fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/kfed at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Finish fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/kfed at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Start fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/kfod at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Finish fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/kfod at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Start fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/renamedg at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Finish fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/renamedg at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Start fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/orion at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Finish fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/orion at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Start fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/rman at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Finish fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/rman at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Start fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/lib/libclntsh.so.11.1 at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Finish fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/lib/libclntsh.so.11.1 at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Start fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/lib/liborasdk.so.11.1 at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Finish fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/lib/liborasdk.so.11.1 at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Following executables are active :
                             /DBSoft/Product/11.2.4/db_1/bin/oracle
                             /DBSoft/Product/11.2.4/db_1/lib/libclntsh.so.11.1
[Oct 9, 2014 5:06:20 AM]     Prerequisite check "CheckActiveFilesAndExecutables" failed.
                             The details are:
                            
                            
                             Following executables are active :
                             /DBSoft/Product/11.2.4/db_1/bin/oracle
                             /DBSoft/Product/11.2.4/db_1/lib/libclntsh.so.11.1
[Oct 9, 2014 5:06:20 AM]     Start fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/proc at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Finish fuser command /sbin/fuser /DBSoft/Product/11.2.4/db_1/bin/proc at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     OUI-67073:UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
[Oct 9, 2014 5:06:20 AM]     Finishing UtilSession at Thu Oct 09 05:06:20 CST 2014
[Oct 9, 2014 5:06:20 AM]     Log file location: /DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-09_05-06-13AM_1.log
[Oct 9, 2014 5:06:20 AM]     Stack Description: java.lang.RuntimeException: Prerequisite check "CheckActiveFilesAndExecutables" failed.
[Oct 9, 2014 5:06:20 AM]     StackTrace: oracle.opatch.OPatchSessionHelper.runApplyPrereqs(OPatchSessionHelper.java:6420)
[Oct 9, 2014 5:06:20 AM]     StackTrace: oracle.opatch.opatchutil.NApply.process(NApply.java:1614)
[Oct 9, 2014 5:06:20 AM]     StackTrace: oracle.opatch.opatchutil.OUSession.napply(OUSession.java:1136)
[Oct 9, 2014 5:06:20 AM]     StackTrace: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[Oct 9, 2014 5:06:20 AM]     StackTrace: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[Oct 9, 2014 5:06:20 AM]     StackTrace: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[Oct 9, 2014 5:06:20 AM]     StackTrace: java.lang.reflect.Method.invoke(Method.java:592)
[Oct 9, 2014 5:06:20 AM]     StackTrace: oracle.opatch.UtilSession.process(UtilSession.java:322)
[Oct 9, 2014 5:06:20 AM]     StackTrace: oracle.opatch.OPatchSession.main(OPatchSession.java:2343)
[Oct 9, 2014 5:06:20 AM]     StackTrace: oracle.opatch.OPatch.main(OPatch.java:614)


问题分析:

我们通过上面的日志信息可以看到,是报有文件是处于执行状态

 

问题解决办法:

1、     检查Oracle进程:

[oracle@db01 18522509]$ ps -ef|grep ora
oracle 2643 1 0 Oct08 ? 00:00:06 /DBSoft/Product/11.2.4/db_1/bin/tnslsnr LISTENER -inherit
oracle 2673 1 0 Oct08 ? 00:00:00 ora_pmon_woo
oracle 2675 1 0 Oct08 ? 00:00:00 ora_psp0_woo
oracle 2677 1 0 Oct08 ? 00:00:00 ora_vktm_woo
oracle 2681 1 0 Oct08 ? 00:00:32 ora_gen0_woo
oracle 2683 1 0 Oct08 ? 00:00:00 ora_diag_woo
oracle 2685 1 0 Oct08 ? 00:00:00 ora_dbrm_woo
oracle 2687 1 0 Oct08 ? 00:00:07 ora_dia0_woo
oracle 2689 1 0 Oct08 ? 00:00:00 ora_mman_woo
oracle 2691 1 0 Oct08 ? 00:00:00 ora_dbw0_woo
oracle 2693 1 0 Oct08 ? 00:00:01 ora_lgwr_woo
oracle 2695 1 0 Oct08 ? 00:00:02 ora_ckpt_woo
oracle 2697 1 0 Oct08 ? 00:00:01 ora_smon_woo
oracle 2699 1 0 Oct08 ? 00:00:00 ora_reco_woo
oracle 2701 1 0 Oct08 ? 00:00:00 ora_mmon_woo
oracle 2703 1 0 Oct08 ? 00:00:03 ora_mmnl_woo
oracle 2705 1 0 Oct08 ? 00:00:00 ora_d000_woo
oracle 2707 1 0 Oct08 ? 00:00:00 ora_s000_woo
oracle 2714 1 0 Oct08 ? 00:00:05 ora_rvwr_woo
oracle 2721 1 7 Oct08 ? 01:01:16 ora_arc0_woo
oracle 2723 1 7 Oct08 ? 01:01:11 ora_arc1_woo
oracle 2725 1 0 Oct08 ? 00:00:00 ora_arc2_woo
oracle 2727 1 7 Oct08 ? 01:00:57 ora_arc3_woo
oracle 2733 1 0 Oct08 ? 00:00:00 ora_qmnc_woo
oracle 2749 1 0 Oct08 ? 00:00:01 ora_cjq0_woo
oracle 2777 1 0 Oct08 ? 00:00:00 ora_q000_woo
oracle 2779 1 0 Oct08 ? 00:00:00 ora_q001_woo
2、      停止数据库再检查进程
[oracle@db01 18522509]$ /home/oracle/shut.sh
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
https://db01:5500/em/console/aboutApplication
Stopping Oracle Enterprise Manager 11g Database Control ...
 ... Stopped.
 
SQL*Plus: Release 11.2.0.4.0 Production on Thu Oct 9 07:50:30 2014
 
Copyright (c) 1982, 2013, Oracle. All rights reserved.
 
 
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
 
 
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 09-OCT-2014 07:50:30
 
Copyright (c) 1991, 2013, Oracle. All rights reserved.
 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
The command completed successfully
 
Database closed.
Database dismounted.
ORACLE instance shut down.
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

### 检查进程
[oracle@db01 18522509]$ ps -ef|grep ora
root 16511 11497 0 04:24 pts/2 00:00:00 su - oracle
oracle 16512 16511 0 04:24 pts/2 00:00:00 -bash
root 24869 24844 0 06:00 pts/3 00:00:00 su - oracle
oracle 24870 24869 0 06:00 pts/3 00:00:00 -bash
oracle 28884 24870 0 06:47 pts/3 00:00:00 tail -f alert_woo.log
oracle 32291 16512 0 07:52 pts/2 00:00:00 ps -ef
oracle 32292 16512 0 07:52 pts/2 00:00:00 grep ora

3、     再次执行正常,问题已排除 :
[oracle@db01 18522509]$ /DBSoft/Product/11.2.4/db_1/OPatch/opatch apply
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation.  All rights reserved.
 
Oracle Home       : /DBSoft/Product/11.2.4/db_1
Central Inventory : /DBSoft/oraInventory
   from           : /DBSoft/Product/11.2.4/db_1/oraInst.loc
OPatch version    : 11.2.0.3.4
OUI version       : 11.2.0.4.0
Log file location : /DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-09_07-53-05AM_1.log
 
Verifying environment and performing prerequisite checks...
Prerequisite check "CheckMinimumOPatchVersion" failed.
The details are:
 
 
The OPatch being used has version 11.2.0.3.4 while the following patch(es) require higher versions:
Patch 17478514 requires OPatch version 11.2.0.3.5.
Patch 18031668 requires OPatch version 11.2.0.3.5.
Patch 18522509 requires OPatch version 11.2.0.3.5.
Please download latest OPatch from My Oracle Support.
 
UtilSession failed: Prerequisite check "CheckMinimumOPatchVersion" failed.
Log file location: /DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-09_07-53-05AM_1.log
 
OPatch failed with error code 73
[oracle@db01 18522509]$ /home/oracle/OPatch/op apply
opatch          opatch.bat      opatchdiag      opatchdiag.bat  opatch.ini      opatch.pl       opatchprereqs/  oplan/         
[oracle@db01 18522509]$ /home/oracle/OPatch/opatch apply
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation.  All rights reserved.
 
 
Oracle Home       : /DBSoft/Product/11.2.4/db_1
Central Inventory : /DBSoft/oraInventory
   from           : /DBSoft/Product/11.2.4/db_1/oraInst.loc
OPatch version    : 11.2.0.3.6
OUI version       : 11.2.0.4.0
Log file location : /DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-09_07-53-39AM_1.log
 
Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   17478514  18031668  18522509 
 
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.





目录
相关文章
|
移动开发 小程序 前端开发
小程序接入微信支付V3接口开发教程
最近做了一个小程序对接微信支付的需求,查看微信支付文档,还是感觉有点凌乱,所以做一个统一整理,供大家参考。
1034 0
小程序接入微信支付V3接口开发教程
|
消息中间件 Java RocketMQ
消息队列 MQ产品使用合集之当SpringBoot应用因网络不通而启动失败时,该如何解决
消息队列(MQ)是一种用于异步通信和解耦的应用程序间消息传递的服务,广泛应用于分布式系统中。针对不同的MQ产品,如阿里云的RocketMQ、RabbitMQ等,它们在实现上述场景时可能会有不同的特性和优势,比如RocketMQ强调高吞吐量、低延迟和高可用性,适合大规模分布式系统;而RabbitMQ则以其灵活的路由规则和丰富的协议支持受到青睐。下面是一些常见的消息队列MQ产品的使用场景合集,这些场景涵盖了多种行业和业务需求。
|
Java 关系型数据库 MySQL
Eclipse中出现javax.servlet.ServletException: javax.servlet.jsp.JspTagException: ...500问题
Eclipse中出现javax.servlet.ServletException: javax.servlet.jsp.JspTagException: ...500问题
1046 0
Eclipse中出现javax.servlet.ServletException: javax.servlet.jsp.JspTagException: ...500问题
|
运维 程序员 数据库
如何用TCC方案轻松实现分布式事务一致性
TCC(Try-Confirm-Cancel)是一种分布式事务解决方案,将事务拆分为尝试、确认和取消三步,确保在分布式系统中实现操作的原子性。它旨在处理分布式环境中的数据一致性问题,通过预检查和资源预留来降低失败风险。TCC方案具有高可靠性和灵活性,但也增加了系统复杂性并可能导致性能影响。它需要为每个服务实现Try、Confirm和Cancel接口,并在回滚时确保资源正确释放。虽然有挑战,TCC在复杂的分布式系统中仍被广泛应用。
832 5
|
人工智能 IDE Java
IntelliJ IDEA 2023.3 最新变化1
IntelliJ IDEA 2023.3 最新变化
362 0
|
网络协议 算法 Linux
TCP教程:详解TCP连接过程
TCP教程:详解TCP连接过程
1620 0
|
达摩院 自然语言处理 测试技术
开源|业界首个应用落地的非自回归端到端语音识别模型,推理效率可提升10倍
近期,阿里巴巴达摩院发布新一代语音识别模型Paraformer,这是业界首个应用落地的非自回归端到端语音识别模型,在推理效率上最高可较传统模型提升10倍,且识别准确率在多个权威数据集上名列第一。 目前,该模型于魔搭社区面向全社会开源,适用语音输入法、智能客服、车载导航、会议纪要等众多场景。
1104 0
|
弹性计算 负载均衡 网络协议
如何借助阿里云产品实现IPv6?
IPv6蓬勃发展,越来越多的系统需要满足IPv6,在主流依然是IPv4情况下,如何基于IPv4实现IPv6?
如何借助阿里云产品实现IPv6?
|
关系型数据库 MySQL 数据库
MySQL8 的加密 Data-at-Rest Encryption ERROR 3185 (HY000):
MySQL 5.7.11引入了InnoDB表空间加密,该加密启用了对每表文件表空间的支持。
448 0