Windows XP下Oracle 10g EM启动

开始 - 运行 - 输入services.msc - 启动OracleDBConsoleorcl服务提示有误。

手工从cmd命令行启动:

C:\Documents and Settings\wangnc> emctl start dbconsole
Environment variable ORACLE_SID not defined. Please define it.

设置Oracle_sid环境变量:

C:\Documents and Settings\wangnc> set oracle_sid=orcl

C:\Documents and Settings\wangnc> emctl start dbconsole
OC4J Configuration issue. D:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_sz-wangncD.cn.linecom.com_orcl not found.

还是不行,到目录 D:\oracle\product\10.2.0\db_1\oc4j\j2ee 下发现只有OC4J_DBConsole_localhost_orcl目录,并没有OC4J_DBConsole_sz-wangncD.cn.linecom.com_orcl这样的目录,然后设置oracle_hostname:

C:\Documents and Settings\wangnc> set oracle_hostname=localhost

C:\Documents and Settings\wangnc> emctl start dbconsole
OC4J Configuration issue. D:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_sz-wangncD.cn.linecom.com_orcl not found.

还是不行:

C:\Documents and Settings\wangnc> NET HELPMSG 3547

发生服务特定错误: ***.


解释

发生服务方面的问题.

操作
请参考解释或手册来判断问题发生原因.

看来不是oracle_hostname的原因,取消设置:

C:\Documents and Settings\wangnc> set oracle_hostname=

C:\Documents and Settings\wangnc> set oracle_hostname
环境变量 oracle_hostname 没有定义
尝试设置C:\WINDOWS\system32\drivers\etc\hosts 文件,再次启动还是不行:

C:\Documents and Settings\wangnc> emctl start dbconsole
OC4J Configuration issue. D:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_sz-wangncD.cn.linecom.com_orcl not found.

由于Oracle是在无网情况下安装的,现在我使用宽带上网,DHCP动态分配IP,所以干脆把网线拨了,并确认:

C:\Documents and Settings\wangnc> ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection:

        Media State . . . . . . . . . . . : Media disconnected

再次手工启动dbconsole:

C:\Documents and Settings\wangnc> 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://localhost:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ...The OracleDBConsoleorcl 服务正在启动............................
OracleDBConsoleorcl 服务已经启动成功.

终于启动了,然后再次插上网线,

现在查看dbconsole服务的状态,虽然看似有误,但是登陆http://localhost:5500/em/已经没有什么问题了。


转自:http://blog.163.com/slq_0352/blog/static/59027097200931874140102/

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值