码迷,mamicode.com
首页 > 其他好文 > 详细

oem启动失败

时间:2015-10-01 01:50:09      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:oem

尝试启动em管理器

[oracle@linux5 ~]$ emctl start dbconsole

TZ set to Asia/Chungking

Oracle Enterprise Manager 10g DatabaseControl Release 10.2.0.5.0 

Copyright (c) 1996, 2010 OracleCorporation.  All rights reserved.

https://linux5:1158/em/console/aboutApplication

Starting Oracle Enterprise Manager 10gDatabase Control.............................................................................................failed.

------------------------------------------------------------------

Logs are generated in directory/u01/app/oracle/product/10.2.1/db_1/linux5_test/sysman/log

 

启动失败

 

查看状态

[oracle@linux5 ~]$ emctl status dbconsole

TZ set to Asia/Chungking

Oracle Enterprise Manager 10g DatabaseControl Release 10.2.0.5.0 

Copyright (c) 1996, 2010 OracleCorporation.  All rights reserved.

https://linux5:1158/em/console/aboutApplication

Oracle Enterprise Manager 10g is notrunning.

------------------------------------------------------------------

Logs are generated in directory/u01/app/oracle/product/10.2.1/db_1/linux5_test/sysman/log

 

但是查看进程,有dbconsole相关进程

[oracle@linux5 ~]$ ps -ef | grep dbconsole

oracle   6626     1  0 01:55 pts/1    00:00:01/u01/app/oracle/product/10.2.1/db_1/perl/bin/perl /u01/app/oracle/product/10.2.1/db_1/bin/emwd.pldbconsole /u01/app/oracle/product/10.2.1/db_1/linux5_test/sysman/log/emdb.nohup

 

从网上查找相关信息,看到有建议说要重装em

步骤如下:

 先删除EM

1 删除如下表和视图或角色,这些都和EM相关的,如果不删除,重新安装EM时会提示这些用户或角色已存在,从而停止安装。

SQL> DROP publicsynonym SETEMVIEWUSERCONTEXT;

SQL> DROP PUBLICSYNONYM MGMT_TARGET_BLACKOUTS;

SQL> drop roleMGMT_USER;

SQL> DROP USERMGMT_VIEW CASCADE;

SQL> DROP USERSYSMAN CASCADE;

2 删除EM
emca -deconfig dbcontrol db -repos drop

3 然后重建
emca -config dbcontrol db -reposcreate

INFO: >>>>>>>>>>>The Database Control URL is https://linux5:1158/em<<<<<<<<<<<

Enterprise Manager configuration completedsuccessfully

FINISHED EMCA at Sep 29, 2015 11:01:37 AM

 

重建后查看em状态,依然没有启动成功

[oracle@linux5 ~]$ emctl start dbconsole

TZ set to Asia/Chungking

Oracle Enterprise Manager 10g DatabaseControl Release 10.2.0.5.0 

Copyright (c) 1996, 2010 OracleCorporation.  All rights reserved.

https://linux5:1158/em/console/aboutApplication

Starting Oracle Enterprise Manager 10gDatabase Control ........................... started.

------------------------------------------------------------------

Logs are generated in directory/u01/app/oracle/product/10.2.1/db_1/linux5_test/sysman/log

[oracle@linux5 ~]$ emctl status dbconsole

TZ set to Asia/Chungking

Oracle Enterprise Manager 10g DatabaseControl Release 10.2.0.5.0 

Copyright (c) 1996, 2010 OracleCorporation.  All rights reserved.

https://linux5:1158/em/console/aboutApplication

EM Daemon is not running.

------------------------------------------------------------------

Logs are generated in directory/u01/app/oracle/product/10.2.1/db_1/linux5_test/sysman/log

 

查看日志中内容

Emdctl.trc中内容

2015-09-30 09:30:30 Thread-4135220928WARN  http: snmehl_connect: connectfailed

 to(linux5:1830): Connection refused (error = 111)

mos中查到10.2.0.4以及10.2.0.5版本em会出现问题,需要提前安装patch p8350262

安装步骤

[oracle@linux5 sw]$ emctl stop dbconsole

TZ set to Asia/Chungking

Oracle Enterprise Manager 10g DatabaseControl Release 10.2.0.5.0 

Copyright (c) 1996, 2010 OracleCorporation.  All rights reserved.

https://linux5:1158/em/console/aboutApplication

Stopping Oracle Enterprise Manager 10gDatabase Control ...

 ... Stopped.

[oracle@linux5 sw]$ ps -ef | grep dbconsole

oracle   7821  1759  0 15:43 pts/1    00:00:00 grep dbconsole

[oracle@linux5 sw]$ ls

10201_database_linux_x86_64.cpio  8350262 database p8350262_10205_Generic.zip

[oracle@linux5 sw]$ cd 8350262/

[oracle@linux5 8350262]$ opatch apply

 

运行完后启动em成功

[oracle@linux5 8350262]$ emctl statusdbconsole

TZ set to Asia/Chungking

Oracle Enterprise Manager 10g DatabaseControl Release 10.2.0.5.0 

Copyright (c) 1996, 2010 OracleCorporation.  All rights reserved.

https://linux5:1158/em/console/aboutApplication

Oracle Enterprise Manager 10g is running.

------------------------------------------------------------------

Logs are generated in directory/u01/app/oracle/product/10.2.1/db_1/linux5_test/sysman/log


本文出自 “Sunny” 博客,请务必保留此出处http://dbasunny.blog.51cto.com/9192126/1699629

oem启动失败

标签:oem

原文地址:http://dbasunny.blog.51cto.com/9192126/1699629

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!