标题: EM13c:Agent启动失败emagent.nohup提示"EMAgent has exited due to... [打印本页] 作者: 刘泽宇 时间: 2025-1-9 16:43 标题: EM13c:Agent启动失败emagent.nohup提示"EMAgent has exited due to... 现象:
EM 13.2 Agent fails to start with the following error:
$AGENT_INST_HOME/bin>./emctl start agent
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 1996, 2016 Oracle Corporation. All rights reserved.
Starting agent ............... failed.
Consult emctl.log and emagent.nohup in: /home/oracle/app/agent/agent_13.2.0.0.0/stage/sysman/log
$AGENT_INST_HOME/sysman/log/emagent.nohup file shows below errors
----- 2018-04-17 10:54:57,273::61714::Checking status of EMAgent : 61757 -----
----- 2018-04-17 10:54:57,273::61714::EMAgent exited at 2018-04-17 10:54:57,273 with return value 55. -----
----- 2018-04-17 10:54:57,273::61714::EMAgent has exited due to initialization failure. -----
----- 2018-04-17 10:54:57,273::61714::Stopping other components. -----
----- 2018-04-17 10:54:57,273::61714::Commiting Process death. -----
----- 2018-04-17 10:54:57,273::61714::writeAbnormalExitTimestampToAgntStmp: exitCause=ABNORMAL : restartRequired=0 -----
----- 2018-04-17 10:54:57,274::61714::Generating additional diagnostics for 61757
原因:
Agent installation is not completed successfully. No targets are added in the $<AGENT_INST>/sysman/emd/targets.xml file as well as in the repository Database tables.
2. Connect to EM repository database as a sysman user.
SQL> select target_name, timezone_region from mgmt_targets where emd_url like '%<AGENT_HOSTNAME>%';
no rows selected
SQL> select entity_name,entity_type, manage_status , promote_status, emd_url from em_manageable_entities where emd_url like '%<AGENT_HOSTNAME>%';
no rows selected
处理方法:
Reinstall the Agent.
a) Deinstall the agent as per the steps given in
EM 13C: How to Deinstall the Enterprise Manager 13c Cloud Control Agent (Doc ID 2095678.1)