`
redhacker
  • 浏览: 495917 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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]$

如果您觉得本文对您有益,请点击博文后的google广告,对作者表示支持,谢谢!
0
2
分享到:
评论

相关推荐

    【OEM】OEM安装维护.pdf

    例如,`export ORACLE_HOME=/path/to/oracle/home`后,可以使用`$ORACLE_HOME/bin/emctl start dbconsole`启动OEM,用`$ORACLE_HOME/bin/emctl stop dbconsole`关闭它。 5. **错误解决技巧**: - 文档中提到,如果...

    oracle10g dbconsole无法启动

    emctl start dbconsole 常见问题 在使用 Oracle 10g 的 OEM 登录时,可能会出现以下问题: java.lang.Exception: UnknownHostException sending request 解决方案: 1. 打开 $ORACLE_HOME/&lt;server_name_SID&gt;/...

    Linux平台下启动oracle 11g EM控制台

    - `emctl start dbconsole`:此命令用于启动 EM 控制台。 - `emctl stop dbconsole`:此命令用于停止 EM 控制台。 2. **检查状态**: - `emctl status dbconsole`:此命令用于检查 EM 控制台当前的状态。 3. **...

    oracle oracleDBConsoleOcl服务无法启动解决办法

    2. **尝试启动DBConsole**:在命令行界面中输入`emctl start dbconsole`并按回车键执行。这一步可能会因为环境变量未正确配置而失败。 **可能出现的错误**: ``` Environment variable ORACLE_SID not defined. ...

    emca配置database control

    4. 最后,通过`emctl start dbconsole`启动DB Console服务。 在Oracle 10G中,DB Control是通过Web界面提供对数据库的实时监控、性能分析、备份恢复等管理功能。它简化了日常数据库运维任务,使得DBA可以通过Web...

    oracle 10g em、isqlplus访问不了的问题解决(汇编)

    - 若服务未启动,则可通过`emctl start dbconsole`命令启动服务。 - 若服务异常终止,则需进一步排查日志文件以定位具体原因。 3. **重新创建或删除EM仓库**: - 如果EM控制台出现严重故障或无法正常启动,可以...

    OEM进程的启动过程

    1. **启动命令**:用户可以通过命令行使用`emctl start dbconsole`来启动EM dbconsole服务。 - 示例: ```bash C:\Documents and Settings\tony&gt;emctl start dbconsole ``` - 在此过程中,如果环境变量`ORACLE_...

    Oracle 10G 的dbconsole 无法启动问题 之彻底解决 方法

    2. **服务启动问题:** 尽管能够通过更换端口(如5500)访问em,但使用命令`emctl start dbconsole`时出现错误提示,例如找不到特定目录或文件夹。 #### 二、临时解决方案 针对上述问题,可以通过以下步骤进行临时...

    oracle dbconsole解决办法

    之后,再次运行 `emctl start dbconsole` 命令启动DBConsole,服务应该能够成功启动。 总结来说,解决Oracle DBConsole因IP地址改变而无法启动的问题,主要涉及以下步骤: 1. 检查并确认用户权限,确保...

    Oracle\oracle_EM无法正常登陆解决方案

    - 启动dbconsole服务:`emctl start dbconsole` 3. **重新登录Oracle EM** - 关闭当前浏览器,重新打开浏览器并在地址栏输入`http://pc-name:port/em`,然后输入用户名、密码并选择合适的登录身份。 #### 特殊...

    oracle10g10204or05-em无法启动解决办法

    oracle10g10204 or 10205 处理方法。 单实例数据库应用此patch的方法...cmd&gt;emctl start dbconsole 当然,如果不使用enterprise manager database control这个组件的话,那么可以不用理会这个错误,不打这个patch。

    ORACLE STUDY EMCA

    - **emctl start dbconsole** - 使用此命令启动EM Console。EM Console是OEM的图形化用户界面,通过它可以直接访问和管理Database Control等功能。 - **emctl stop dbconsole** - 使用此命令停止EM Console服务。 ...

    oracle启动问题及相关知识总结

    在CMD中运行`emctl start dbconsole`,可能会出现关于ORACLE_SID未定义或oc4j配置问题的错误。这通常是因为DBConsole的配置仓库目录与实际目录不匹配。可以通过`emca -config dbcontrol db -repos recreate`命令重建...

    oracle10g em 重新配置

    2. 使用`emctl start dbconsole`命令启动DB Console。 ```bash emctl start dbconsole ``` #### 五、验证配置 配置完成后,可以通过访问EM的Web界面来验证配置是否成功。 **步骤:** 1. 打开浏览器,输入`...

    RAC实例启动,关闭命令

    在日常运维工作中,掌握这些命令不仅有助于提高工作效率,还能在出现问题时迅速定位问题并采取相应措施进行解决。此外,在处理紧急情况时,如故障恢复或系统迁移等场景下,熟练掌握这些命令尤为重要。希望本文能为...

    Oracle 入门之service脚本管理启动,关闭,重启

    为了解决这一问题,可以编写一个服务脚本来简化这些操作。通过使用Red Hat提供的`service`命令,我们可以轻松地实现Oracle数据库的启动、关闭和重启等功能。 #### 二、Service脚本设计原理 为了实现对Oracle数据库...

    通过浏览器访问oracle 10g.docx

    在设置了正确的`ORACLE_SID`之后,再次执行`emctl start dbconsole`仍可能遇到错误提示“oc4jconfigrationissue”以及指定路径找不到的问题。这些问题通常是由于Oracle企业管理器(DBConsole)找不到其配置信息仓库...

    OracleDBConsoleorcl服务无法启动问题解决

    - 使用命令行工具执行`emctl startdbconsole`命令,检查是否仍然出现问题。 **步骤三:检查OC4J配置** 1. **解决OC4J配置问题:** - 如果执行`emctl startdbconsole`后出现“OC4J Configuration issue”错误,...

    Oracle学习笔记

    - **命令行方式**:使用`emctl start dbconsole`来启动Oracle控制台。 ``` emctl start dbconsole ``` - **检查状态**:使用`emctl status dbconsole`来查看控制台的状态。 ``` emctl status dbconsole ``` ...

    oracle在linux下的启动和关闭

    emctl start dbconsole ``` - **注意事项**:确保Oracle环境变量已经设置正确,否则可能会遇到权限问题或无法启动的情况。 ##### 3. lsnrctl start 启动连接监听 监听器是Oracle数据库系统中负责接收客户端请求并...

Global site tag (gtag.js) - Google Analytics