现象
Windows 不能在 本地计算机 启动 OracleDBConsoleorcl有关更多信息查阅系统事件日志如果这是非 Microsoft 服务请与服务厂商联系并参考特定服务错误代码
系统事件日志 报错误Agent process exited abnormally during initialization
出现情况原来正常计算机名更改或IP地址变了后就不能启动
解决步骤如下
开始》运行cmd
执行 emctl start dbconsole
C:\Documents and Settings\xcl>emctl start dbconsole
Environment variable ORACLE_SID not defined Please define it
提示环境变量 ORACLE_SID 未定义请定义
设置 ORACLE_SID =ORCL (orcl是我的实例名也是服务名)
C:\Documents and Settings\xcl>set oracle_sid=orcl
再次执行emctl start dbconsole
C:\Documents and Settings\xcl>emctl start dbconsole
OCJ Configuration issue E:\oracle\product\\db_/ocj/jee/OCJ_DBConsole
_chinadefd_orcl not found
提示无法找到E:\oracle\product\\db_/ocj/jee/OCJ_DBConsole
_chinadefd_orcl
注chinadefd 是我的计算机名
复制该目录下的OCJ_DBConsole_localhost_orcl文件夹放在同一目录下且把名称改成OCJ_DBConsole_chinadefd_orcl
再次执行emctl start dbconsole
C:\Documents and Settings\xcl>emctl start dbconsole
EM Configuration issue E:\oracle\product\\db_/chinadefd_orcl not f
ound
提示无法找到 E:\oracle\product\\db_/chinadefd_orcl
复制该目录下的localhost_orcl文件夹放在同一目录下且把名称改成chinadefd_orcl
再次执行emctl start dbconsole
C:\Documents and Settings\xcl>emctl start dbconsole
Oracle Enterprise Manager g Database Control Release
Copyright (c) Oracle Corporation All rights reserved
//localhost:/em/
Starting Oracle Enterprise Manager g Database Control OracleDBConsoleorcl
服务正在启动
OracleDBConsoleorcl 服务已经启动成功