oracle DBaaS 数据库云服务实践之一添加主机失败解决

错误信息

在主机 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部署成功

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值