Java自学者论坛

 找回密码
 立即注册

手机号码,快捷登录

恭喜Java自学者论坛(https://www.javazxz.com)已经为数万Java学习者服务超过8年了!积累会员资料超过10000G+
成为本站VIP会员,下载本站10000G+会员资源,会员资料板块,购买链接:点击进入购买VIP会员

JAVA高级面试进阶训练营视频教程

Java架构师系统进阶VIP课程

分布式高可用全栈开发微服务教程Go语言视频零基础入门到精通Java架构师3期(课件+源码)
Java开发全终端实战租房项目视频教程SpringBoot2.X入门到高级使用教程大数据培训第六期全套视频教程深度学习(CNN RNN GAN)算法原理Java亿级流量电商系统视频教程
互联网架构师视频教程年薪50万Spark2.0从入门到精通年薪50万!人工智能学习路线教程年薪50万大数据入门到精通学习路线年薪50万机器学习入门到精通教程
仿小米商城类app和小程序视频教程深度学习数据分析基础到实战最新黑马javaEE2.1就业课程从 0到JVM实战高手教程MySQL入门到精通教程
查看: 342|回复: 0

emctl start dbconsole失败问题的解决

[复制链接]
  • TA的每日心情
    奋斗
    2024-4-6 11:05
  • 签到天数: 748 天

    [LV.9]以坛为家II

    2034

    主题

    2092

    帖子

    70万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    705612
    发表于 2021-5-14 10:59:44 | 显示全部楼层 |阅读模式

    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

    哎...今天够累的,签到来了1...
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|手机版|小黑屋|Java自学者论坛 ( 声明:本站文章及资料整理自互联网,用于Java自学者交流学习使用,对资料版权不负任何法律责任,若有侵权请及时联系客服屏蔽删除 )

    GMT+8, 2024-4-29 21:46 , Processed in 0.073862 second(s), 29 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表