EM安装方法

单机EM安装方法:

1、查看em使用方法

emca -help  

2、无论是否建立过,先删除

emca -deconfig dbcontrol db -repos drop

3、建立EM

emca -config dbcontrol db -repos create

4、EM状态查看

emctl status dbconsole

5、EM启动

emctl start dbconsole

 

 


RAC集群EM安装方法:

1、查看em使用方法

emca -help  

2、无论是否建立过,先删除

emca -deconfig dbcontrol db -repos drop
emca -deconfig dbcontrol db -repos drop -cluster


3、新建rac数据库的EM

emca -config dbcontrol db -repos create -cluster 

遇到报错WARNING: Error during db connection : ORA-12514: TNS:listener does not currently know of service requested in connect descriptor 

解决方法:
1)
Remove all the ASM password files from each node: 

rm Grid Oracle Home/dbs/orapw+ASM1 
rm Grid Oracle Home/dbs/orapw+ASM2 

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)Add the ASMSNMP user in ASM instance, and grant sysdba privilege to it: 

sqlplus / as sysasm
create user asmsnmp identified by ‘password’; 
grant sysdba to asmsnmp;


4)Verify the ASMSNMP user was created: 

select * from v$pwfile_users


4、再次新建rac数据库EM,注意EM通过listener_scan 访问ASM实例,因此创建EM需在listener_scan1所在节点,否则报错SEVERE: Error getting hostname for the cluster node rac02. This node may not be configured correctly

emca -config dbcontrol db -repos create -cluster 

 

posted @   Eddie小陈  阅读(330)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示