ORACLE 11g RAC EM手动配置
前一段通过静默安装方式配置了一套两个节点的11gr2 RAC,后面再配置EM却不成功,症状表现是EM配置完成后,登录页面,出现如下错误:
The 主机 CPU Chart could not be generated.
1.Error: Invalid BoundDataSource: no class, method or dataSource provided.
2.Check the log file for details.
The 活动会话数 Chart could not be generated.
1.Error: Invalid BoundDataSource: no class, method or dataSource provided.
2.Check the log file for details.
经过查找原因,发现根本原因是11g RAC在配置EM时,需要-cluster参数,如
$emca -deconfig dbcontrol db -repos drop -cluster
注意:以上命令清除RAC数据库旧配置信息,但是会使数据库进入静默模式,锁定所有用户,在生产环境是不允许的。于是分两步进行配置:(不会进入静默模式)
1)删除旧配置信息
emca -deconfig dbcontrol db节点1emca -deconfig dbcontrol db 节点2
sqlplus / as sysdba
SQL> drop user sysman cascade;
SQL> drop role MGMT_USER;
SQL> drop user MGMT_VI