ORACLE 11g RAC EM手动配置
2016-12-26 13:54
337 查看
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−deconfigdbcontroldb节点1emca -deconfig dbcontrol db 节点2
sqlplus / as sysdba
SQL> drop user sysman cascade;
SQL> drop role MGMT_USER;
SQL> drop user MGMT_VIEW cascade;
SQL> drop public synonym MGMT_TARGET_BLACKOUTS;
SQL> drop public synonym SETEMVIEWUSERCONTEXT;
2)重新建立RAC数据库db control 配置信息
$emca -config dbcontrol db -repos create -cluster
配置过程中出现的问题:
中间出现Error警告
WARNING: Error during db connection : ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
可以无视
ASMSNMP密码错误问题
[oracle@vm4 db_1]$ emca -config dbcontrol db -repos create -cluster
STARTED EMCA at Dec 22, 2016 5:18:40 PM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database unique name: racdb
Service name: racdb
Listener port number: 1521
Listener ORACLE_HOME [ /data/app/11.2.0/grid ]:
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Password for SYSMAN user: Cluster name: rac-cluster
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
ASM ORACLE_HOME [ /data/app/11.2.0/grid ]:
ASM port [ 1521 ]:
ASM username [ ASMSNMP ]:
ASM user password:
Dec 22
4000
, 2016 5:19:12 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
WARNING: Error during db connection : ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Dec 22, 2016 5:19:17 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
WARNING: ORA-01031: insufficient privileges
Dec 22, 2016 5:19:17 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
WARNING: Error during db connection : ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Dec 22, 2016 5:19:22 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
WARNING: ORA-01031: insufficient privileges
Password validation failed. Some of the possible reasons may be:
1) Invalid username/password.
2) Database is not up.
3) Scan listener not up.
4) Database service is not registered with scan listener.
5) Password file may be missing or configured incorrectly.
ASM user password:
解决方法
1) Remove all the ASM password files from each node:
rm Grid Oracle Home/dbs/orapw+ASM1
rm Grid Oracle Home/dbs/orapw+ASM2
rm Grid Oracle Home/dbs/orapw+ASM<..n>
2) Create ASM password file manually on the first node as the OS user which owns the Grid Infrastructure:
$> orapwd file=’orapw+ASM1’ entries=5 password=’here your password’
3) Copy the password file to all nodes with the correct ASM instance name:
scp orapw+ASM1 to remote node : Grid Oracle Home/dbs/orapw+ASM2
scp orapw+ASM1 to remote node : Grid Oracle Home/dbs/orapw+ASM3
..
scp orapw+ASM1 to remote node : Grid Oracle Home/dbs/orapw+ASM<..n>
4) Add the ASMSNMP user in ASM instance, and grant sysdba privilege to it:
SQL> create user asmsnmp identified by ‘password’;
SQL> grant sysdba to asmsnmp;
5) Verify the ASMSNMP user was created:
SQL> select * from v$pwfile_users;
USERNAME SYSDB SYSOP SYSAS
SYS TRUE TRUE TRUE
ASMSNMP TRUE FALSE FALSE
接下来建立成功,将HTTPS改为HTTP就行了
$emctl unsecure dbconsole
最终配置成功,EM页面图标显示正常了!
【参考】
1. ORACLE 11g EM 无法启动的问题和重建,http://blog.sina.com.cn/s/blog_7c855cf70100shrv.html
2. http://www.itpub.net/thread-1757162-1-1.html
3. Reconfigure Database Control in RAC environment using EMCA,http://www.oracle-class.com/?p=2424
相关文章推荐
- oracle 11g 手动配置EM
- 【转】Oracle 11g R2手动配置EM
- OWB 11g 循序渐进系列 - (1) 初始化配置Oracle Warehouse Builder 11g
- oracle 11g即时客户端配置详解
- Oracle 11g client的配置
- CentOS 5.5上安装配置oracle 11g R2
- Windows 7下如何手动卸载oracle 11G
- 手动创建Oracle 11g数据库
- windows 7环境下配置oracle 11g 客户端
- Oracle 11g不能配置监听问题的解决
- Oracle 11g 客户端安装及plsql配置
- Oracle 11g DataGuard物理standby配置
- Oracle 11g DataGuard 配置
- 配置oracle 11g r2 RAC on rhel5.5 (二)
- 配置oracle 11g r2 RAC on rhel5.5 (一)
- Oracle 11g client的配置
- C#连接Oracle 11g配置文件注释
- Oracle 11g R2的Linux安装环境配置
- Oracle 11g DataGuard物理standby配置2
- Oracle 11g R2手工配置Service服务