OracleDBConsoleorcl 服务因下列错误而停止: 系统找不到指定的路径 原因主要还是更改了主机名或换了IP导致的问题,更改了相应的文件名: D:/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_192.168.0.136_dgtest(更换新IP或机器名) //dgtest为oracle_sid D:/oracle/product/10.2.0/db_1/asdfjkl_dgtest(更换新IP或机器名)//dgtest为oracle_sid 在目錄d:/oracle/product/10.2.0/db_1/install/portlist.ini裡找到EM是使用哪個port Microsoft Windows XP [版本 5.1.2600] (C) 版权所有 1985-2001 Microsoft Corp. C:/Documents and Settings/youandy>set oracle_sid=dgtest C:/Documents and Settings/youandy>emca -repos recreate EMCA 开始于 2008-3-25 8:17:19 EM Configuration Assistant 10.2.0.1.0 正式版 版权所有 (c) 2003, 2005, Oracle。保留所有权利。 输入以下信息: 数据库 SID: dgtest 监听程序端口号: 1521 SYS 用户的口令: SYSMAN 用户的口令: SYSMAN 用户的口令: 是否继续? [yes(Y)/no(N)]: y 2008-3-25 8:17:48 oracle.sysman.emcp.EMConfig perform 信息: 正在将此操作记录到 D:/oracle/product/10.2.0/db_1/cfgtoollogs/emca/dgtest/e mca_2008-03-25_08-17-19-上午.log。 2008-3-25 8:17:49 oracle.sysman.emcp.EMReposConfig dropRepository 信息: 正在删除 EM 资料档案库 (此操作可能需要一段时间)... 2008-3-25 8:19:37 oracle.sysman.emcp.EMReposConfig invoke 信息: 已成功删除资料档案库 2008-3-25 8:19:37 oracle.sysman.emcp.EMReposConfig createRepository 信息: 正在创建 EM 资料档案库 (此操作可能需要一段时间)... 2008-3-25 8:23:04 oracle.sysman.emcp.EMReposConfig invoke 信息: 已成功创建资料档案库 已成功完成 Enterprise Manager 的配置 EMCA 结束于 2008-3-25 8:23:04 C:/Documents and Settings/youandy>emctl start dbconsole Environment variable ORACLE_SID not defined. Please define it. C:/Documents and Settings/youandy>set oracle_sid=dgtest C:/Documents and Settings/youandy>emctl start dbconsole Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved. https://192.168.0.136:1158/em/console/aboutApplication Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoledgtest 服务正在启动 . OracleDBConsoledgtest 服务无法启动。 系统出错。 发生系统错误 3。 系统找不到指定的路径。 C:/Documents and Settings/youandy> C:/Documents and Settings/youandy>emca -config dbcontrol db EMCA 开始于 2008-3-25 8:37:02 EM Configuration Assistant 10.2.0.1.0 正式版 版权所有 (c) 2003, 2005, Oracle。保留所有权利。 输入以下信息: 数据库 SID: dgtest 已为数据库 dgtest 配置了 Database Control 您已选择配置 Database Control, 以便管理数据库 dgtest 此操作将移去现有配置和默认设置, 并重新执行配置 是否继续? [yes(Y)/no(N)]: y 监听程序端口号: 1521 SYS 用户的口令: DBSNMP 用户的口令: SYSMAN 用户的口令: 用户名/口令无效。 SYSMAN 用户的口令: SYSMAN 用户的口令: 通知的电子邮件地址 (可选): 通知的发件 (SMTP) 服务器 (可选): ----------------------------------------------------------------- 已指定以下设置 数据库 ORACLE_HOME ................ D:/oracle/product/10.2.0/db_1 数据库主机名 ................ asdfjkl 监听程序端口号 ................ 1521 数据库 SID ................ dgtest 通知的电子邮件地址 ............... 通知的发件 (SMTP) 服务器 ............... ----------------------------------------------------------------- 是否继续? [yes(Y)/no(N)]: y 2008-3-25 8:38:11 oracle.sysman.emcp.EMConfig perform 信息: 正在将此操作记录到 D:/oracle/product/10.2.0/db_1/cfgtoollogs/emca/dgtest/e mca_2008-03-25_08-37-02-上午.log。 2008-3-25 8:38:14 oracle.sysman.emcp.util.PortManager isPortInUse 警告: 指定的端口 5540 已在使用。 2008-3-25 8:38:14 oracle.sysman.emcp.util.PortManager isPortInUse 警告: 指定的端口 5520 已在使用。 2008-3-25 8:38:14 oracle.sysman.emcp.util.PortManager isPortInUse 警告: 指定的端口 1158 已在使用。 2008-3-25 8:38:14 oracle.sysman.emcp.util.DBControlUtil stopOMS 信息: 正在停止 Database Control (此操作可能需要一段时间)... 2008-3-25 8:38:26 oracle.sysman.emcp.util.DBControlUtil startOMS 信息: 正在启动 Database Control (此操作可能需要一段时间)... 2008-3-25 8:39:06 oracle.sysman.emcp.EMDBPostConfig performConfiguration 信息: 已成功启动 Database Control 2008-3-25 8:39:10 oracle.sysman.emcp.EMDBPostConfig performConfiguration 警告: 无法创建 Database Control 快捷方式 2008-3-25 8:39:10 oracle.sysman.emcp.EMDBPostConfig performConfiguration 信息: >>>>>>>>>>> Database Control URL 为 https://asdfjkl:1158/em <<<<<<<<<<< 已成功完成 Enterprise Manager 的配置 EMCA 结束于 2008-3-25 8:39:10OracleDBConsoleorcl 服务因下列错误而停止: 系统找不到指定的路径 原因主要