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
本文来自博客园,作者:Eddie小陈,转载请注明原文链接:https://www.cnblogs.com/orachen/p/15878774.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?