錯誤信息
在主機 dfmc-dbaasp-01.dfmc.com.cn 上執行命令 cd /u01/app/oracle/em13c/ADATMP_2017-05-31_14-55-43-PM;/u01/app/oracle/em13c/ADATMP_2017-05-31_14-55-43-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=dfmc-dbaasp-01.dfmc.com.cn AGENT_BASE_DIR=/u01/app/oracle/em13c OMS_HOST=dfmc-dbaasem-01.dfmc.com.cn EM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME=/u01/app/oracle/em13c/agent_inst b_doDiscovery=false START_AGENT=false b_forceInstCheck=true -force AGENT_PORT=3872 失敗
在主機 test-dbaas-01.dfmc.com.cn 上執行命令 (cd /u01/app/oracle/em13c/agent_13.2.0.0.0/cfgtoollogs &&
/u01/app/oracle/em13c/agent_13.2.0.0.0/bin/zip -q -r /tmp/remoteArchivesdfmc-dbaasp-01.dfmc.com.cn2017-05-31_03-25-58-PM.zip * -x oui/**\* OPatch/**\* oracle_common/**\*) 失敗 錯誤消息:/bin/sh: /u01/app/oracle/em13c/agent_13.2.0.0.0/bin/zip: ???????????????????????????
退出代碼 :127
此段無措的原因是上段錯誤未執行完成,一些目錄和命令未生成
重新執行錯誤命令:
[oracle@dfmc-dbaasp-01 ~]$ cd /u01/app/oracle/em13c/ADATMP_2017-05-31_14-55-43-PM;/u01/app/oracle/em13c/ADATMP_2017-05-31_14-55-43-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=dfmc-dbaasp-01.dfmc.com.cn AGENT_BASE_DIR=/u01/app/oracle/em13c OMS_HOST=dfmc-dbaasem-01.dfmc.com.cn EM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME=/u01/app/oracle/em13c/agent_inst b_doDiscovery=false START_AGENT=false b_forceInstCheck=true -force AGENT_PORT=3872
The space available is .... 3099519 MB
Validating the OMS_HOST & EM_UPLOAD_PORT
Executing command : /u01/app/oracle/em13c/agent_13.2.0.0.0/jdk/jre/bin/java -classpath /u01/app/oracle/em13c/agent_13.2.0.0.0/jlib/agentInstaller.jar:/u01/app/oracle/em13c/agent_13.2.0.0.0/oui/modules/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /u01/app/oracle/em13c/agent_13.2.0.0.0 /u01/app/oracle/em13c/ADATMP_2017-05-31_14-55-43-PM /u01/app/oracle/em13c $args -prereq
AGENT_ins home is:-ignorePrereqsoraclehome is:/u01/app/oracle/em13c/agent_13.2.0.0.0
The oraclehome /u01/app/oracle/em13c/agent_13.2.0.0.0
Validating oms host & port with url: https://dfmc-dbaasem-01.dfmc.com.cn:4903/empbs/genwallet
Validating oms host & port with url: http://dfmc-dbaasem-01.dfmc.com.cn:4903/empbs/genwallet
Return status:1-Either oms port passed is not valid or oms url is not accessible
ERROR: The Oracle Management Server (OMS) host and port specified via OMS_HOST and EM_UPLOAD_PORT is not available. Pass in a valid hostname and port number for the OMS to successfully deploy the agent. ------錯誤信息中發現主機名和端口異常
Alternatively, you can do one of the following:
1. Install the agent software only and configure the agent later once the OMS is available. Installing just the software without configuring can be accomplished by passing the '-softwareOnly' argument to agentDeploy.sh and if windows pass the arguments to agentDeploy.bat instead. Configuring the agent after the software has been installed can be accomplished by passing the '-configOnly' argument to agentDeploy.sh and if platform is windows pass the arguments to agentDeploy.bat.
2. Force the configuration of the agent, even though the OMS is not available. This can be accomplished by passing the '-forceConfigure' option to agentDeploy.sh and if windows pass the arguments to agentDeploy.bat.
NOTE: Forcing the configuration of the agent when the OMS is not available will configure the agent to use HTTP (non-secure) communication. In order to properly establish secure HTTPS communication between the agent and the OMS, you will need to secure the agent after the OMS is available.
If you are passing 10.2.0.5.0 or 11.1.0.1.0 OMS_HOST and EM_UPLOAD_PORT then that is not supported. Pass in a valid hostname and port number of 12c OMS.
Validating the OMS_HOST & EM_UPLOAD_PORT has failed
解決方法:
1、在EM13C和部署Agent的主機上進行/etc/hosts解析主機名(帶有域名)
#添加如下
10.2.21.17 test-dbaasem-01 test-dbaasem-01.oracle.com
10.2.21.10 test-dbaas-01 test-dbaas-01.oracle.com
10.2.21.11 test-dbaas-02 test-dbaas-02.oracle.com
2、檢查EM13C主機和部署Agent的主機間網絡端口是否受限制,放開端口限制後agent部署成功