emctl start dbconsole失败问题的解决

1、为了启动em,使用命令emctl start dbconsole。 

[oracle@localhost DBOracle]$ emctl start dbconsole 
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved. 
https://localhost.localdomain:1158/em/console/aboutApplication 
Starting Oracle Enterprise Manager 11g Database Control ............................................................................................. failed. 
------------------------------------------------------------------ 
Logs are generated in directory /usr/oracle/DBOracle/app/localhost.localdomain_mwdb/sysman/log 

2、启动失败,查看日志,没找到解决方案。 

[oracle@localhost DBOracle]$ vi /usr/oracle/DBOracle/app/localhost.localdomain_mwdb/sysman/log 

" ============================================================================ 
" Netrw Directory Listing                                        (netrw v125) 
"   /usr/oracle/DBOracle/app/localhost.localdomain_mwdb/sysman/log 
"   Sorted by      name 
"   Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$ 
"   Quick Help: <F1>:help  -:go up dir  D:delete  R:rename  s:sort-by  x:exec 
" ============================================================================ 
../ 
pafLogs/ 
.emagent_perl.trc 
emagent.log 
emagent.trc 
emagent.trc.1 
emagent.trc.2 
emagent_perl.trc 
emagentfetchlet.log 
emagentfetchlet.trc 
emctl.log 
emctl.msg 
emdb.nohup 
emdctl.log 
emdctl.trc 
emoms.log 
emoms.trc 
emoms.trc.1 
emoms.trc.2 
nfsPatchPlug.log 
patchAgtStPlugin.log 
secure.log 
                                                                         
3、直接输入emctl start得到相关命令的提示。      
                 
[oracle@localhost DBOracle]$ emctl start 
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved. 
   Oracle Enterprise Manager 10g Database Control commands: 
        emctl start | stop dbconsole 
        emctl status | secure | setpasswd dbconsole 
        emctl config dbconsole -heap_size <size_value> -max_perm_size <size_value> 
       emctl status agent 
       emctl status agent -secure [-omsurl <http://<oms-hostname>:<oms-unsecure-port>/em/*>] 
       emctl getversion 
       emctl reload | upload | clearstate | getversion agent 
       emctl reload agent dynamicproperties [<Target_name>:<Target_Type>].... 
       emctl config agent <options> 
       emctl config agent updateTZ 
       emctl config agent getTZ 
       emctl resetTZ agent 
       emctl config agent credentials [<Target_name>[:<Target_Type>]] 
       emctl gensudoprops 
       emctl clearsudoprops 
Blackout Usage : 
       emctl start blackout <Blackoutname> [-nodeLevel] [<Target_name>[:<Target_Type>]].... [-d <Duration>] 
       emctl stop blackout <Blackoutname> 
       emctl status blackout [<Target_name>[:<Target_Type>]].... 

The following are valid options for blackouts 
<Target_name:Target_type> defaults to local node target if not specified. 
If -nodeLevel is specified after <Blackoutname>,the blackout will be applied to all targets and any target list that follows will be ignored. 
Duration is specified in [days] hh:mm 

        emctl getemhome 
        emctl ilint 
Em Key Commands Usage : 
emctl config emkey -emkeyfile <emkey.ora path> [-force] [-sysman_pwd <sysman password>] 
emctl config emkey -emkey [-emkeyfile <emkey.ora path>] [-force] [-sysman_pwd <sysman password>] 
emctl config emkey -repos [-emkeyfile <emkey.ora path>] [-force] [-sysman_pwd <sysman password>] 
emctl config emkey -remove_from_repos [-sysman_pwd <sysman password>] 
emctl config emkey -copy_to_repos [-sysman_pwd <sysman password>] 
emctl status emkey [-sysman_pwd <sysman password>] 

Secure DBConsole Usage : 
emctl secure dbconsole -sysman_pwd <sysman password> [-passwd_file <abs file loc>] 
        [-host <slb hostname>] [-sid <service name>] [-reset] [-secure_port <secure_port>] 
        [-root_dc <root_dc>] [-root_country <root_country>] [-root_state <root_state>] [-root_loc <root_loc>] 
        [-root_org <root_org>] [-root_unit <root_unit>] [-root_email <root_email>] 
        [-wallet <wallet loc>] [-wallet_pwd <wallet pwd>] [-trust_certs_loc <certs loc>] 
emctl secure status dbconsole 
Register Targettype Usage : 
emctl register oms targettype [-o <Output filename>] <XML filename> <rep user> <rep passwd> <rep host> <rep port> <rep sid> OR 
emctl register oms targettype [-o <Output filename>] <XML filename> <rep user> <rep passwd> <rep connect descriptor> 

4、根据提示帮助使用emctl status dbconsole命令发现em不在运行状态。 

[oracle@localhost DBOracle]$ emctl status dbconsole 
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved. 
https://localhost.localdomain:1158/em/console/aboutApplication 
Oracle Enterprise Manager 11g is not running. 
------------------------------------------------------------------ 
Logs are generated in directory /usr/oracle/DBOracle/app/localhost.localdomain_mwdb/sysman/log 

5、根据提示帮助,使用emca -config dbcontrol db -repos recreate重建。 

[oracle@localhost DBOracle]$ emca -config dbcontrol db -repos recreate 

STARTED EMCA at Oct 17, 2011 9:54:44 AM 
EM Configuration Assistant, Version 11.2.0.0.2 Production 
Copyright (c) 2003, 2005, Oracle.  All rights reserved. 

Enter the following information: 
Database SID: mwdb 
Database Control is already configured for the database mwdb 
You have chosen to configure Database Control for managing the database mwdb 
This will remove the existing configuration and the default settings and perform a fresh configuration 
Do you wish to continue? [yes(Y)/no(N)]: y 
Listener ORACLE_HOME [ /usr/oracle/DBOracle/app ]: 
Password for SYS user:  
Password for DBSNMP user: [oracle@localhost DBOracle]$ 
[oracle@localhost DBOracle]$ emca -config dbcontrol db -repos recreate 

STARTED EMCA at Oct 17, 2011 9:55:44 AM 
EM Configuration Assistant, Version 11.2.0.0.2 Production 
Copyright (c) 2003, 2005, Oracle.  All rights reserved. 

Enter the following information: 
Database SID: mwdb 
Database Control is already configured for the database mwdb 
You have chosen to configure Database Control for managing the database mwdb 
This will remove the existing configuration and the default settings and perform a fresh configuration 
Do you wish to continue? [yes(Y)/no(N)]: y 
Listener ORACLE_HOME [ /usr/oracle/DBOracle/app ]: 
Password for SYS user:  
Password for DBSNMP user:  
Password for SYSMAN user:  
Email address for notifications (optional): 
Outgoing Mail (SMTP) server for notifications (optional): 
----------------------------------------------------------------- 

You have specified the following settings 

Database ORACLE_HOME ................ /usr/oracle/DBOracle/app 

Local hostname ................ localhost.localdomain 
Listener ORACLE_HOME ................ /usr/oracle/DBOracle/app 
Listener port number ................ 1522 
Database SID ................ mwdb 
Email address for notifications ............... 
Outgoing Mail (SMTP) server for notifications ............... 

----------------------------------------------------------------- 
Do you wish to continue? [yes(Y)/no(N)]: y 
Oct 17, 2011 9:56:28 AM oracle.sysman.emcp.EMConfig perform 
INFO: This operation is being logged at /usr/oracle/cfgtoollogs/emca/mwdb/emca_2011_10_17_09_55_44.log. 
Oct 17, 2011 9:56:28 AM oracle.sysman.emcp.util.DBControlUtil stopOMS 
INFO: Stopping Database Control (this may take a while) ... 
Oct 17, 2011 9:56:31 AM oracle.sysman.emcp.EMReposConfig invoke 
INFO: Dropping the EM repository (this may take a while) ... 
Oct 17, 2011 9:58:23 AM oracle.sysman.emcp.EMReposConfig invoke 
INFO: Repository successfully dropped 
Oct 17, 2011 9:58:23 AM oracle.sysman.emcp.EMReposConfig createRepository 
INFO: Creating the EM repository (this may take a while) ... 
Oct 17, 2011 10:04:20 AM oracle.sysman.emcp.EMReposConfig invoke 
INFO: Repository successfully created 
Oct 17, 2011 10:04:21 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository 
INFO: Uploading configuration data to EM repository (this may take a while) ... 
Oct 17, 2011 10:05:06 AM oracle.sysman.emcp.EMReposConfig invoke 
INFO: Uploaded configuration data successfully 
Oct 17, 2011 10:05:09 AM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib 
INFO: Software library configured successfully. 
Oct 17, 2011 10:05:09 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary 
INFO: Deploying Provisioning archives ... 
Oct 17, 2011 10:05:28 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary 
INFO: Provisioning archives deployed successfully. 
Oct 17, 2011 10:05:28 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole 
INFO: Securing Database Control (this may take a while) ... 
Oct 17, 2011 10:06:07 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole 
INFO: Database Control secured successfully. 
Oct 17, 2011 10:06:07 AM oracle.sysman.emcp.util.DBControlUtil startOMS 
INFO: Starting Database Control (this may take a while) ... 
Oct 17, 2011 10:06:21 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration 
INFO: Database Control started successfully 
Oct 17, 2011 10:06:21 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration 
INFO: >>>>>>>>>>> The Database Control URL is https://localhost.localdomain:1158/em <<<<<<<<<<< 
Oct 17, 2011 10:06:23 AM oracle.sysman.emcp.EMDBPostConfig invoke 
WARNING: 
************************  WARNING  ************************ 

Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted.  The encryption key has been placed in the file: /usr/oracle/DBOracle/app/localhost.localdomain_mwdb/sysman/config/emkey.ora.   Please ensure this file is backed up as the encrypted data will become unusable if this file is lost. 

*********************************************************** 
Enterprise Manager configuration completed successfully 
FINISHED EMCA at Oct 17, 2011 10:06:23 AM 

6、再次启动em,启动成功。 

[oracle@localhost DBOracle]$ emctl status dbconsole                   
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved. 
https://localhost.localdomain:1158/em/console/aboutApplication 
Oracle Enterprise Manager 11g is running. 
------------------------------------------------------------------ 
Logs are generated in directory /usr/oracle/DBOracle/app/localhost.localdomain_mwdb/sysman/log 
[oracle@localhost DBOracle]$

http://redhacker.iteye.com/blog/1198156

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值