您的位置:首页 > 数据库 > Oracle

在Window下安装Oracle 12C Cloud Control Agent

2014-03-27 08:54 543 查看
① 准备好安装源,这个ORACLE普通账号无法下载到,有需要的可以联系我
p14570373_112000_Generic.zip,用于Windows 64位操作系统

② 解压p14570373_112000_Generic.zip,
同时要进一步解压里面的12.1.0.2.0_AgentCore_233.zip

③ 配置12.1.0.2.0_AgentCore_233.zip解压出来的文件agent.rsp
#Enter the OMS host name
OMS_HOST=Could Control Server Name

#Enter the upload port (HTTP or HTTPS) for communicating with the OMS
#Default HTTP Port is 4890 HTTPS Port is 4904
EM_UPLOAD_PORT=Could Control HTTP Or HTTPS Upload Port

#Enter a password for registering new Management Agents that join the Enterprise Manager system
AGENT_REGISTRATION_PASSWORD=Could Control AGENT REGISTRATION PASSWORD 不是SYSMAN的密码

#Enter a directory location on the destination host where all Management Agent-related configuration files can be stored
AGENT_INSTANCE_HOME=D:\agent\agent_inst

#Enter a free port on which the Management Agent process should be started
#If you do not enter any value, then either 3872 or any free port between 1830 and 1849 is honored
AGENT_PORT=3872

#Enter TRUE if you want the Management Agent to start automatically once it is installed and configured. Otherwise, enter FALSE.
#注意这项默认就已经在 agent.rsp 里面,为了好看才把它写到这里来
b_startAgent=true

#Enter the fully qualified domain name of the host where you want to install the agent
ORACLE_HOSTNAME=Install Agent Host Name

#Enter the name of the Oracle home you want to see created for the Management Agent
s_agentHomeName=agent12cR2

#Enter the customized Management Agent service name
s_agentServiceName=Oracleagent12cAgent

这里注意几点:
♢ OMS_HOST参数为服务器的hostname,假如服务器端配置的名称带域名的,必须在客户端hosts文件中配置短名称或者长名称
♢ AGENT_REGISTRATION_PASSWORD,这个密码不是SYSMAN的密码
如果忘记了
可以在服务器端执行emctl secure setpwd sysmanpassword agentregisterpasswd,重置这个密码
♢ ORACLE_HOSTNAME,是客户端的HOST_NAME,假如在一个多网卡的环境中
一定不能直接就用客户端的HOST_NAME,在Windows 下这个HOST_NAME,不是唯一对应着一个固定的IP,所以必须要在hosts文件重新配置一个
例如我的host_name 是Shark,可是这里配置的ORACLE_HOSTNAME=shark-vm,Hosts文件中添加了一个条目
192.168.202.1 shark-vm
同时要在服务器端的Host文件中配置此内容,当然如果你有DNS服务器,就只需要在DNS配置此内容就可以了。

这个参数配置不正确的话,在Clound Control Console上就找不到主机目标
这些配置项,配置错的话,都会导致第④步出错

④ 以管理员身份打开cmd.exe,尤其是Windows 7,Windows 2008,Windows 8上
agentDeploy.bat AGENT_BASE_DIR=D:\agent\agent_inst OMS_HOST= Could Control Server Name EM_UPLOAD_PORT=4890 AGENT_REGISTRATION_PASSWORD=passwd ORACLE_HOSTNAME=Install Agent Host Name
♢ 这里还有一个参数:-ignorePrereqs,忽略先决条件检查,这个很重要,否则你要更改很多.ini文件中的[Certified Versions]中的Windows项Windows=4.0,5.0,5.1,5.2,6.0,6.1,6.2,6.3

  ♢ 注意AGENT_BASE_DIR参数不要设置和安装源同一路径下

⑤ 在 Clound Control Console,搜寻相关管理目标,注意客户端上的数据库、监听器登管理对象,是需要手动搜寻。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: