先从oem上删除有关的所有target
target: RAC node1(instance,asm,crs,listener……)
用download脚本方式安装,在gc server机上验证ssh等价性先(保证安装过程不输密码)
$OMS_HOME/sysman/prov/resources/scripts/sshUserSetup.sh -hosts "rac01" -user oracle
时区已经设置过了,具体安装过程是参照这里的
http://www.linuxdiyf.com/viewarticle.php?id=23373
完了之后start agent,一启动马上down
$AGENT_HOME/sysman/log/emagent.trc里面报错:
FATAL_ERROR::500|ORA-20618: The specified agent is in the process of being deleted from the repository, wait for deletion to complete before restarting the agent.
看来是卸载不干净,上metalink一看,原来是bug 4960108,而且没有修正的版本
解决方法是在oms db中直接删除表里面没清除干净的target信息
sqlplus sysman@emrep
delete from MGMT_EMD_PING a where a.target_guid in (select target_guid from MGMT_TARGETS_DELETED);
delete from MGMT_EMD_PING_CHECK a where a.target_guid in (select target_guid from MGMT_TARGETS_DELETED);
delete from MGMT_TARGETS_DELETED;
commit;
再$AGENT_HOME/bin/emctl start agent,$AGENT_HOME/bin/emctl upload agent
oem console的target页面终于出现rac01了……
剩下的就是configure rac instance,asm这些了
metalink里面提到需要再重装agent,我没重装一样也好好的用
提示:刚装完agent需要upload到oms的东西比较多,会出现upload timeout,没关系,多upload几下就好了