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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章