一、启动OracleDBCOnsoleorcl报如下错误: Windows 不能在 本地计算机 启动 OracleDBConsoleorcl。有关更多信息,查阅系统事件日志。如果这是非 Microsoft 服务,请与服务厂商联系,并参考特定服务错误代码 2。 解决方案: 1、开始-》运行cmd 2、执行 emctl start dbconsole C:\Documents and Settings\xcl>emctl start dbconsole Environment variable ORACLE_SID not defined. Please define it. 提示:环境变量 ORACLE_SID 未定义,请定义。 3、设置 ORACLE_SID =ORCL (orcl是我的实例名,也是服务名) C:\Documents and Settings\xcl>set oracle_sid=orcl 4、再次执行emctl start dbconsole C:\Documents and Settings\xcl>emctl start dbconsole OC4J Configuration issue. E:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole _jadethao_orcl not found. 提示:无法找到“E:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole _jadethao_orcl “ 注:jadethao 是我的计算机名 复制该目录下的“OC4J_DBConsole_localhost_orcl”文件夹放在同一目录下,且把名称改成“OC4J_DBConsole_jadethao_orcl”。 5、再次执行emctl start dbconsole C:\Documents and Settings\xcl>emctl start dbconsole EM Configuration issue. E:\oracle\product\10.2.0\db_1/jadethao_orcl not found. 提示:无法找到 “E:\oracle\product\10.2.0\db_1/jadethao_orcl ” 复制该目录下的“localhost_orcl”文件夹放在同一目录下,且把名称改成“jadethao7_orcl”。 6、再次执行emctl start dbconsole C:\Documents and Settings\xcl>emctl start dbconsole Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved. http://localhost:1158/em/ Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoleorcl 服务正在启动 .............................. OracleDBConsoleorcl 服务已经启动成功 二、如果还是报启动不了,报如下错误: OracleDBConsoleorcl 服务无法启动。 系统出错。 发生系统错误 3。 系统找不到指定的路径。 请执行一下操作: Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 C:\Users\Administrator>emca -config dbcontrol db EMCA 开始于 2012-8-15 3:46:52 EM Configuration Assistant 10.2.0.1.0 正式版 版权所有 (c) 2003, 2005, Oracle。保留所有权利。 输入以下信息: 数据库 SID: orcl 已为数据库 orcl 配置了 Database Control 您已选择配置 Database Control, 以便管理数据库 orcl 此操作将移去现有配置和默认设置, 并重新执行配置 是否继续? [yes(Y)/no(N)]: y 监听程序端口号: 1521 SYS 用户的口令: DBSNMP 用户的口令: DBSNMP 用户的口令: 用户名/口令无效。 DBSNMP 用户的口令: DBSNMP 用户的口令: 用户名/口令无效。 DBSNMP 用户的口令: SYSMAN 用户的口令: SYSMAN 用户的口令: 用户名/口令无效。 SYSMAN 用户的口令: SYSMAN 用户的口令: 通知的电子邮件地址 (可选): 通知的发件 (SMTP) 服务器 (可选): ----------------------------------------------------------------- 已指定以下设置 数据库 ORACLE_HOME ................ E:\oracle\product\10.2.0\db_1 数据库主机名 ................ jadethao 监听程序端口号 ................ 1521 数据库 SID ................ orcl 通知的电子邮件地址 ............... 通知的发件 (SMTP) 服务器 ............... ----------------------------------------------------------------- 是否继续? [yes(Y)/no(N)]: y 2012-8-15 3:50:30 oracle.sysman.emcp.EMConfig perform 信息: 正在将此操作记录到 E:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc a_2012-08-15_03-46-52-上午.log。 2012-8-15 3:50:37 oracle.sysman.emcp.DatabaseChecks performReposChecks 警告: 'shared_pool_size' 必须大于等于 80 MB。 2012-8-15 3:50:39 oracle.sysman.emcp.util.PortManager isPortInUse 警告: 指定的端口 5540 已在使用。 2012-8-15 3:50:39 oracle.sysman.emcp.util.PortManager isPortInUse 警告: 指定的端口 5520 已在使用。 2012-8-15 3:50:39 oracle.sysman.emcp.util.PortManager isPortInUse 警告: 指定的端口 1158 已在使用。 2012-8-15 3:50:39 oracle.sysman.emcp.util.DBControlUtil stopOMS 信息: 正在停止 Database Control (此操作可能需要一段时间)... 2012-8-15 3:50:52 oracle.sysman.emcp.util.DBControlUtil startOMS 信息: 正在启动 Database Control (此操作可能需要一段时间)... 2012-8-15 3:51:32 oracle.sysman.emcp.EMDBPostConfig performConfiguration 信息: 已成功启动 Database Control 2012-8-15 3:51:32 oracle.sysman.emcp.EMDBPostConfig performConfiguration 信息: >>>>>>>>>>> Database Control URL 为 http://jadethao:1158/em <<<<<<<<<<< 已成功完成 Enterprise Manager 的配置 EMCA 结束于 2012-8-15 3:51:32 C:\Users\Administrator> 这样输入url:http://localhost:1158/em就可以登录了
转载于:https://www.cnblogs.com/goto/archive/2012/11/05/2754904.html
相关资源:Oracle Database 11g数据库管理艺术--详细书签版