oracle job重建,Oracle重建EM - terwergreen的个人空间 - OSCHINA - 中文开源技术交流社区...

经过执行以下命令重建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 >

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值