日期:2014-05-16  浏览次数:20383 次

Oracle10g出现Enterprise Manager 无法连接到数据库实例解决办法

1、查看dbconsole的状态

C:\Documents and Settings\Administrator>emctl status dbconsole

Environment variable ORACLE_SID not defined. Please define it.

?

2、设置环境变量

C:\Documents and Settings\Administrator>set ORACLE_SID=ORCL

?


3、重新配置em

C:\Documents and Settings\Administrator>emca? -config dbcontrol db

?

EMCA 开始于 2008-12-18 13:55:39
EM Configuration Assistant 10.2.0.1.0 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。

输入以下信息:
数据库 SID:ORCL
已为数据库 ORCL 配置了 Database Control
您已选择配置 Database Control, 以便管理 数据库 XBOMS
此操作将移去现有配置和默认设置, 并重新执行配置
是否继续? [yes(Y)/no(N)]:Y
监听程序端口号:1521
SYS 用户的口令:
DBSNMP 用户的口令:
SYSMAN 用户的口令:
通知的电子邮件地址 (可选):
通知的发件 (SMTP) 服务器 (可选):
-----------------------------

已指定以下设置

数据库 ORACLE_HOME ................ E:\oracle\product\10.2.0\db_1

数据库主机名 ................ erp1
监听程序端口号 ................ 1568
数据库 SID ................ XBOMS
通知的电子邮件地址 ...............
通知的发件 (SMTP) 服务器 ...............

-----------------------------
是否继续? [yes(Y)/no(N)]:Y
2008-12-18 13:57:04 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 E:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\XBOMS\em
ca_2008-12-18_01-55-39-下午.log。
2008-12-18 13:57:12 oracle.sysman.emcp.util.DBControlUtil stopOMS
信息: 正在停止 Database Control (此操作可能需要一段时间)...
2008-12-18 13:57:59 oracle.sysman.emcp.util.DBControlUtil startOMS
信息: 正在启动 Database Control (此操作可能需要一段时间)...
2008-12-18 13:58:39 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: 已成功启动 Database Control
2008-12-18 13:58:39 oracle.sysman.emcp.EMDBPostConfig performConfiguration
警告: 无法创建 Database Control 快捷方式
2008-12-18 13:58:39 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: >>>>>>>>>>> Database Control URL 为http://erp1:1158/em <<<<<<<<<<<
已成功完成 Enterprise Manager 的配置
EMCA 结束于 2008-12-18 13:58:39


再次打开成功!

http://ip:1158/em ? 正常打开页面。