Oracle重建EM

本文介绍了解决Oracle EM(企业管理器)在非安全模式下启动的问题。通过一系列命令,包括重建EM环境、配置数据库控制等步骤,最终成功解决了EM的安全配置问题,并提供了详细的命令行操作指南。

经过执行以下命令重建EM,问题解决。

emca -repos drop

emca -repos create

emca -config dbcontrol db

emctl start dbconsole

执行第三部会报错

WARNING: Error executing /data/app/oracle/product/11.2.0/dbhome_1/bin/emctl secure dbconsole -host terwergreen -sid orcl 
Jul 13, 2018 1:15:00 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
WARNING: Error securing Database control.
Jul 13, 2018 1:15:00 PM oracle.sysman.emcp.EMDBPostConfig setWarnMsg
INFO: Error securing Database Control, Database Control has been brought up in non-secure mode. To secure the Database Control execute the following command(s): 
 
 1) Set the environment variable ORACLE_SID to orcl 
 2) /data/app/oracle/product/11.2.0/dbhome_1/bin/emctl stop dbconsole 
 3) /data/app/oracle/product/11.2.0/dbhome_1/bin/emctl config emkey -repos -sysman_pwd < Password for SYSMAN user >  
 4) /data/app/oracle/product/11.2.0/dbhome_1/bin/emctl secure dbconsole -sysman_pwd < Password for SYSMAN user >  
 5) /data/app/oracle/product/11.2.0/dbhome_1/bin/emctl start dbconsole 
 
 To secure Em Key, run /data/app/oracle/product/11.2.0/dbhome_1/bin/emctl config emkey -remove_from_repos -sysman_pwd < Password for SYSMAN user >
Jul 13, 2018 1:15:00 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Jul 13, 2018 1:15:05 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Jul 13, 2018 1:15:05 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://terwergreen:1158/em <<<<<<<<<<<


Error securing Database Control, Database Control has been brought up in non-secure mode. To secure the Database Control execute the following command(s): 
 
 1) Set the environment variable ORACLE_SID to orcl 
 2) /data/app/oracle/product/11.2.0/dbhome_1/bin/emctl stop dbconsole 
 3) /data/app/oracle/product/11.2.0/dbhome_1/bin/emctl config emkey -repos -sysman_pwd < Password for SYSMAN user >  
 4) /data/app/oracle/product/11.2.0/dbhome_1/bin/emctl secure dbconsole -sysman_pwd < Password for SYSMAN user >  
 5) /data/app/oracle/product/11.2.0/dbhome_1/bin/emctl start dbconsole 
 
 To secure Em Key, run /data/app/oracle/product/11.2.0/dbhome_1/bin/emctl config emkey -remove_from_repos -sysman_pwd < Password for SYSMAN user >

转载于:https://my.oschina.net/terwergreen/blog/1845898

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值