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. C:/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_sz-wangncD.cn.linecom.com_orcl not found.

还是不行,到目录 C:/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
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 service is starting.............
The OracleDBConsoleorcl service could not be started.

A service specific error occurred: 2.

More help is available by typing NET HELPMSG 3547.

提示奇怪的错误,根据提示看看原因:

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

A service specific error occurred: ***.


EXPLANATION

A service-specific error occurred.

ACTION

Refer to the Help or documentation for that service to determine the problem.

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

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

C:/Documents and Settings/wangnc>set oracle_hostname
Environment variable oracle_hostname not defined

尝试设置C:/WINDOWS/system32/drivers/etc/hosts 文件,再次启动还是不行:

C:/Documents and Settings/wangnc>emctl start dbconsole
OC4J Configuration issue. C:/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 service is starting............................
The OracleDBConsoleorcl service was started successfully.

终于启动了,然后再次插上网线,并确认:

C:/Documents and Settings/wangnc>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix . : local
        IP Address. . . . . . . . . . . . : 192.168.10.63
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.10.1

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

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

--End--

 

转贴地址:http://hi.baidu.com/edeed/blog/item/e0c6b2b73229d3f131add1b2.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值