`
redhacker
  • 浏览: 489688 次
  • 性别: 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

    【OEM】OEM安装维护.pdf【OEM】OEM安装维护.pdf【OEM】OEM安装维护.pdf

    oracle10g em 重新配置

    oracle10g em 重新配置 emca -repos drop emca -repos create 建议 emca -repos recreate (当时用create 出现莫名错误,但没注意错误日志) emca -config dbcontrol db ...emctl start dbconsole

    oracle10g10204or05-em无法启动解决办法

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

    Oracle安装单机后自启动参数配置.txt

    #!/bin/bash # chkconfig: 345 99 10 # description: Startup Script for Oracle...su - $ORA_OWNR -c "$ORACLE_HOME/bin/emctl start dbconsole" #su - $ORA_OWNR -c "$ORACLE_HOME/bin/isqlplusctrl start" echo "OK

    Enterprise Manage 配置成功,出现以下警告:

    Enterprise Manage 配置成功,出现以下警告: 启动 Database Control 时出错。请执行以下命令。 1)将环境变量 ORACLE_UNQNAME设置为...2)C:\app\Administrator\product\11.2.0\dbhome_1\bin\emctl.bat start dbconsole

    Linux部署服务器常用命令.doc

    passwd stie2012 设置密码 chmod 777 abc.txt 777读写执行 4 2 1 chown oracl用户名:oinstall abc.txt 所有者 jdk的话 安装 java -version 查看jdk版本 emctl start dbconsole 启动控制台管理 unzip aa.zip ZIP 解...

    oracle rac日常基本维护命令

    $ emctl start dbconsole 使用 SRVCTL 启动/停止所有实例 启动/停止所有实例及其启用的服务。我只是觉得有意思就把此步骤作为关闭所有实例的一种方法加进来了! $ srvctl start database -d orcl $ srvctl ...

    Oracle中手动删除数据库教程

    在很多情况下,或无法使用dbca工具的时候,我们需要手动来删除数据库。对此,可以借助drop database命令来实现,下面的描述中给出... $ emctl stop dbconsole    2.获得数据文件,日志文件及控制文件的相关信息,

    oracle 11g安装配置

    [oracle@dbserver ~]$ emctl stop dbconsole [oracle@dbserver ~]$ dbshut $ORACLE_HOME [oracle@dbserver ~]$ dbstart $ORACLE_HOME [oracle@dbserver ~]$ emctl stop dbconsole 使用系统服务脚本 编写/etc/...

    oracle 10g OEM常规错误(Unknown host specified)解决

    这些遇到问题的解决办法使用过,但是很久没折腾就忘记了,今天把这些问题和解决方法记录在此。 1、网络环境变化导致无法启动 这个问题的现象是无法启动OEM。使用命令行如下: 代码如下: C:/Users/Administrator&gt;set ...

    使用EM12C实现DBaa服务

    。Oracle Enterprise Manager 12c 提 供的云服务作为一项开创性的技术,通过满足各种多租户架构的资源池模型,让企业用户自 助部署 IT 资源。数据库即服务 (DBaaS) 是一种范式,最终用户(DBA、开发人员、QA 工 ...

    端口扫描工具

    ORACLE EMCTL,默认的端口号为1158; Oracle XDB( XML 数据库),默认的端口号为8080; Oracle XDB FTP服务,默认的端口号为2100; MS SQL*SERVER数据库server,默认的端口号为1433/tcp 1433/udp; MS SQL*SERVER...

Global site tag (gtag.js) - Google Analytics