oracle - emctl start dbconsole 启动问题 (转)

来源:互联网 发布:淘宝权重低怎么办 编辑:程序博客网 时间:2024/04/30 04:39

OracleDBConsoleorcl 服务因下列错误而停止:
系统找不到指定的路径




原因主要还是更改了主机名或换了IP导致的问题,更改了相应的文件名:






D:\oracle\product\10.2.0\db_1\oc4j\j2ee\OC4J_DBConsole_192.168.0.136_dgtest(更换新IP或机器名)


D:\oracle\product\10.2.0\db_1\asdfjkl_dgtest(更换新IP或机器名)
在目錄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.
http://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 为 http://asdfjkl:1158/em <<<<<<<<<<<
已成功完成 Enterprise Manager 的配置
EMCA 结束于 2008-3-25 8:39:10


C:\Documents and Settings\youandy>




IE栏重新登入OK
-----------------------------------------------------------------------------------------------------------------------------------
修改计算机名称后,oracle所有服务全部都启动不了。
建议不要随意修改计算机名称,因为修改计算机名称后,要修改很多oracle的配置,麻烦的要死。
我原来的计算机名为:53m6df34f7
修改后的计算机名称为:sgliuya2
首先解决OracleDBConsole*服务。
在cmd窗口运行命令emctl start dbconsole,出现下面信息:
C:\Documents and Settings\liuya>emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://53m6df34f7:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsolemap 服
务正在启动 .
OracleDBConsolemap 服务无法启动。
系统出错。
发生系统错误 3。
系统找不到指定的路径。
部分的连接为你修改之前的计算机名称,所以提示你系统找不到制定的路径。
可以来修改相应的配置文件来解决,但是太麻烦。可以用下面方法解决之:
在cmd窗口运行命令:emca -repos recreate
C:\Documents and Settings\liuya>emca -repos recreate
EMCA 开始于 2009-1-30 10:22:31
EM Configuration Assistant 10.2.0.1.0 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。
输入以下信息:
数据库 SID: orcl
监听程序端口号: 1521
SYS 用户的口令:
SYSMAN 用户的口令:
是否继续? [yes(Y)/no(N)]: y
2009-1-30 10:22:47 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\map\emca
_2009-1-30_10-22-31-上午.log。
2009-1-30 10:22:48 oracle.sysman.emcp.EMReposConfig dropRepository
信息: 正在删除 EM 资料档案库 (此操作可能需要一段时间)...
2009-1-30 10:24:02 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功删除资料档案库
2009-1-30 10:24:02 oracle.sysman.emcp.EMReposConfig createRepository
信息: 正在创建 EM 资料档案库 (此操作可能需要一段时间)...
2009-1-30 10:26:08 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功创建资料档案库
已成功完成 Enterprise Manager 的配置


再执行emca -config dbcontrol db
OracleOraDb10g_home1TNSListener和OracleService服务按一下操作:
修改D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN目录下的listener.ora和tnsnames.ora两个配置文件
将原来的计算机改成现在的计算机名或者localhost。
搞完以上之后启OEM进去了又出现了如下异常
java.lang.Exception: Exception in sending Request :: null
在Oracle论坛上查到了解决办法:
http://forums.oracle.com/forums/thread.jspa?threadID=320574&tstart=0&messageID=1374397
找到下面的文件
D:\oracle\product\10.2.0\db_1\sysman\config\emd.properties
其中的agentTZRegion缺省是GMT,改为你所在的时区即可,例如:
agentTZRegion=Asia/Shanghai
关于时区的列表参考:D:\oracle\product\10.2.0\db_1\sysman\admin\supportedtzs.lst
然后,重启OracleDBConsole<SID>
进入OEM后又出现如下异常
java.lang.Exception: IOException in sending Request :: Connection refused
1. emctl resetTZ agent
2. emctl stop dbconsole
3. emctl start dbconsole
解决
以下为在论坛中找的类似问题
oracle 10.2.0.3 RAC下的解决方法
1. Stop the DBConsole
2. Change <Oracle_Home>/sysman/admin/default_collection/rac_database.xml.
lines (59-62) from
<CollectionItem NAME="AgentSideResponse" UPLOAD="NO">
<Schedule >
<IntervalSchedule INTERVAL="5" TIME_UNIT="Min"/>
</Schedule>
to
<CollectionItem NAME="AgentSideResponse" UPLOAD="NO">
<Schedule OFFSET_TYPE="INCREMENTAL">
<IntervalSchedule INTERVAL="5" TIME_UNIT="Min"/>
</Schedule>
3. Start the DBconsole and try again
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/liuya1985liuya/archive/2009/01/30/3855197.aspx