Oracle GC 13C 添加Agent的过程中报错
/u01/app/oracle/Middleware/ADATMP_2016-08-27_13-11-01-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=rcfdg2.localdomain AGENT_BASE_DIR=/u01/app/oracle/Middleware OMS_HOST=rcfgc.localdomain EM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME=/u01/app/oracle/Middleware/agent_inst b_doDiscovery=false START_AGENT=false b_forceInstCheck=true -force AGENT_PORT=3872
报错/u01/app/agent13c/agent_13.1.0.0.0/bin/zip: not found
检查metalink【EM13C: Agent Push with teh Add host Target Wizard Fails During Installation and Configuration with Error: /bin/sh: /u01/app/agent13c/agent_13.1.0.0.0/bin/zip: not found (文档 ID 2116912.1)】
检查/tmp空间 发现空间足够。
继续检查 该命令中
/u01/app/oracle/Middleware/ADATMP_2016-08-27_13-11-01-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=rcfdg2.localdomain AGENT_BASE_DIR=/u01/app/oracle/Middleware OMS_HOST=rcfgc.localdomain EM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME=/u01/app/oracle/Middleware/agent_inst b_doDiscovery=false START_AGENT=false b_forceInstCheck=true -force AGENT_PORT=3872
涉及到ORACLE_HOSTNAME 的格式是******.localdomian 于是检查/etc/hosts文件
cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
#public ip
192.20.192.21 racnode1
192.20.192.23 racnode2
#privite ip
1920.1920.192.192 racnode1-p1
1920.1920.192.12 racnode2-p1
1920.1920.192.11 racnode1-p2
1920.1920.192.13 racnode2-p2
#vip ip
192.20.192.22 racnode1-vip
192.20.192.24 racnode2-vip
#scan ip
192.20.192.25 SCAN-RAC
发现node1 node2 节点的解析中格式不对 修改一下:
cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
#public ip
192.20.192.21 racnode1 racnode1.localdomain
192.20.192.23 racnode2 racnode2.localdomain
#privite ip
1920.1920.192.192 racnode1-p1 racnode1-p1.localdomain
1920.1920.192.12 racnode2-p1 racnode2-p1.localdomain
1920.1920.192.11 racnode1-p2 racnode1-p2.localdomain
1920.1920.192.13 racnode2-p2 racnode2-p2.localdomain
#vip ip
192.20.192.22 racnode1-vip racnode1-vip.localdomain
192.20.192.24 racnode2-vip racnode2-vip.localdomain
#scan ip
192.20.192.25 SCAN-RAC SCAN-RAC.localdomain
再次添加Agent成功。
自己给自己挖坑........