OEM Agent13.5客户端安装补丁RU14异常退出code 241

 

OEM Agent13.5客户端安装补丁RU14异常退出code 241

 

如下:(agentpatcher apply -analyze无任何报错)

[oracle@Agent13.5 ~]$ cd /soft/RU_Agent/34980350/
[oracle@Agent13.5 34980350]$ export ORACLE_HOME=/u01/app/oem13c/agent/agent_13.5.0.0.0
[oracle@Agent13.5 34980350]$ agentpatcher apply -silent
...省略不关键信息...
AgentPatcher log file: /u01/app/oem13c/agent/agent_13.5.0.0.0/cfgtoollogs/agentpatcher/34980350/agentpatcher_2023-05-16_14-21-53PM_deploy.log
...省略不关键信息...
Applying sub-patch(es) "32968787,33586851,33737099,33869752,34024065,34471036,34471145,34980335,34980342,34981735,35123051,35123078"
Please monitor log file: /u01/app/oem13c/agent/agent_13.5.0.0.0/cfgtoollogs/opatch/opatch2023-05-16_14-21-56PM_1.log

Make Sure to Stop Agent so that lock on active files may be released...
...省略不关键信息...
AgentPatcher failed with error code 241

 

防伪链接:https://www.cnblogs.com/PiscesCanon/p/17406112.html

 

查看日志/u01/app/oem13c/agent/agent_13.5.0.0.0/cfgtoollogs/agentpatcher/34980350/agentpatcher_2023-05-16_14-21-53PM_deploy.log,

[root@QA-Szeport-App25 ~]# cat /u01/app/oem13c/agent/agent_13.5.0.0.0/cfgtoollogs/agentpatcher/34980350/agentpatcher_2023-05-16_14-21-53PM_deploy.log
...省略不关键信息...
[May 16, 2023 2:22:42 PM]    Applying sub-patch(es) "32968787,33586851,33737099,33869752,34024065,34471036,34471145,34980335,34980342,34981735,35123051,35123078"
[May 16, 2023 2:22:56 PM]    NApplyReport Log file: /u01/app/oem13c/agent/agent_13.5.0.0.0/cfgtoollogs/opatch/opatch2023-05-16_14-21-56PM_1.log
[May 16, 2023 2:22:56 PM]    Exception Occured while executiong Apply Operation: Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.
[May 16, 2023 2:22:56 PM]    NApply Logfile: /u01/app/oem13c/agent/agent_13.5.0.0.0/cfgtoollogs/opatch/opatch2023-05-16_14-21-56PM_1.log
[May 16, 2023 2:22:56 PM]    Make Sure to Stop Agent so that lock on active files may be released...
[May 16, 2023 2:22:56 PM]    AgentPatcher failed to apply following patch(es) "32968787" "33586851" "33737099" "33869752" "34024065" "34471036" "34471145" "34980335" "34980342" "34981735" "35123051" "35123078"  to core/plugin Oracle home(s).
...省略不关键信息...

关键信息是“Prerequisite check "CheckActiveFilesAndExecutables" failed.”。

 

MOS上没有符合症状的文档,从

“Make Sure to Stop Agent so that lock on active files may be released...”以及“Prerequisite check "CheckActiveFilesAndExecutables"可以推算出是有文件被占用。

但是确定执行过$AGENT_HOME/bin/emctl stop agent了,就怕未知原因关闭不完全仍有相关的文件被占用。

OS上执行fuser发现没安装,执行lsof | grep oem也没发现有文件被占用。

 

由于有过较多次打Oracle PSU补丁的经验,知道psu在分析校验或者应用阶段是有使用fuser命令验证文件是否被占用的机制。

本次agent所在OS没有fuser是不是导致失败的原因?

于是根据OracleOIM类似问题处理方式有三种方式,

  1. 设置环境变量 OPATCH_NO_FUSER=true将此变量设置为“true”会通知 agentpacher 跳过对活动可执行文件的检查。
    重新执行“agentpatcher apply -silent”
  2. 设置一个临时的fuser
    2.1 在你的PATH环境变量中设置/tmp
    2.2 创建一个名为“fuser”的空文件
    2.3 重新执行“agentpatcher apply -silent”
    。。。有点意思
  3. 安装fuser,即yum install -y psmisc
    重新执行“agentpatcher apply -silent”

由于不确定是否确实fuser引起的,尽量减少改动的原则下尝试第一种方式。

[oracle@Agent13.5 34980350]$ export OPATCH_NO_FUSER=true
[oracle@Agent13.5 34980350]$ agentpatcher apply -silent

...省略不关键信息...

AgentPatcher log file: /u01/app/oem13c/agent/agent_13.5.0.0.0/cfgtoollogs/agentpatcher/34980350/agentpatcher_2023-05-16_14-24-03PM_deploy.log

...省略不关键信息...

Applying sub-patch(es) "32968787,33586851,33737099,33869752,34024065,34471036,34471145,34980335,34980342,34981735,35123051,35123078"
 Please monitor log file: /u01/app/oem13c/agent/agent_13.5.0.0.0/cfgtoollogs/opatch/opatch2023-05-16_14-24-06PM_1.log

...省略不关键信息...


All log file names referenced below can be accessed from the directory "/u01/app/oem13c/agent/agent_13.5.0.0.0/cfgtoollogs/agentpatcher/2023-05-16_14-24-02PM_SystemPatch_34980350_1"
...省略不关键信息...
Log file location: /u01/app/oem13c/agent/agent_13.5.0.0.0/cfgtoollogs/agentpatcher/34980350/agentpatcher_2023-05-16_14-24-03PM_deploy.log
AgentPatcher succeeded.

 

成功了。

牛逼。

吐槽下这个报错提示真误导人。。

posted @ 2023-05-16 16:42  PiscesCanon  阅读(142)  评论(0编辑  收藏  举报