您的位置:首页 > 其它

WINDOWS下OEM启动出错时如何处理

2014-04-01 16:46 197 查看
一、启动ORM出错

C:\Documents and Settings\hostname>emctl start dbconsole

Environment variable ORACLE_SID not defined. Please define it.

二、设置ORACLE_SID

C:\Documents and Settings\hostname>set ORACLE_SID=orcl

三、启动OEM,出现新错

C:\Documents and Settings\hostname>emctl start dbconsole

Unable to determine local host from URL REPOSITORY_URL=http://hostname:%EM_UPLOAD_PORT%/em/upload/

四、设置dbcontrol(按照提示进行,最后OEM会自动启动)

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

EMCA 开始于 2010-8-26 16:37:28

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 用户的口令:

SYSMAN 用户的口令:

SYSMAN 用户的口令: 通知的电子邮件地址 (可选): hostname@organ.gov.cn

通知的发件 (SMTP) 服务器 (可选): mail.organ.gov.cn

-----------------------------------------------------------------

已指定以下设置

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

数据库主机名 ................ hostname

监听程序端口号 ................ 1521

数据库 SID ................ orcl

通知的电子邮件地址 ............... hostname@organ.gov.cn

通知的发件 (SMTP) 服务器 ............... mail.organ.gov.cn

-----------------------------------------------------------------

是否继续? [yes(Y)/no(N)]: y

2010-8-26 16:40:03 oracle.sysman.emcp.EMConfig perform

信息: 正在将此操作记录到 E:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emca_2010-08-26_04-37-27-下午.log。

2010-8-26 16:40:06 oracle.sysman.emcp.util.DBControlUtil stopOMS

信息: 正在停止 Database Control (此操作可能需要一段时间)...

2010-8-26 16:40:17 oracle.sysman.emcp.util.DBControlUtil startOMS

信息: 正在启动 Database Control (此操作可能需要一段时间)...

2010-8-26 16:41:07 oracle.sysman.emcp.EMDBPostConfig performConfiguration

信息: 已成功启动 Database Control---------------------------------------------------------------此处已经重启完成

2010-8-26 16:41:08 oracle.sysman.emcp.EMDBPostConfig performConfiguration

警告: 无法创建 Database Control 快捷方式

2010-8-26 16:41:08 oracle.sysman.emcp.EMDBPostConfig performConfiguration

信息: >>>>>>>>>>> Database Control URL 为 http://hostname:1158/em <<<<<<<<<<<

已成功完成 Enterprise Manager 的配置

EMCA 结束于 2010-8-26 16:41:08

C:\Documents and Settings\hostname>

本文出自 “麦地坞” 博客,请务必保留此出处http://yunlongzheng.blog.51cto.com/788996/383502
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: