2009年4月16日星期四

OracleDBConsole

  Oracle 启动OracleDBConsole时报错:Agent process exited abnormally during initialization。
  原因分析步骤如下:

1、命令行执行:emctl start dbconsole
报错:Environment variable ORACLE_SID not defined. Please define it.

2、执行set ORACLE_SID=ORA 后再执行 emctl start dbconsole
报错:OC4J Configuration issue. D:\Program\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_192.168.2.17_ORA not found.

  分析:看了一下我的安装目录为:D:\Program\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_wmz_ORA 注意红色部份。由于我的机器是自己用,可能会经常修改IP,所以最好的方式是修改IP为机器名,当然也可以在 C:\WINDOWS\system32\drivers\etc\hosts 文件中添加一行 IP 机器名即可。

3、再次执行 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://wmz:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoleORA 服务正在启动 ................
OracleDBConsoleORA 服务已经启动成功。


如果机器改名,则还需要更改的内容如下:
1、oracle\product\10.2.0\db_1\WMZ_ORA\sysman\config\emd.properties
2、oracle\product\10.2.0\db_1\WMZ_ORA\sysman\config\emoms.properties
将上述两个文件中的内容关于机器名的地方修改即可,当然文件目录也要修改。

0 comments:

发表评论

 
Friend JXKJ EAMPUB NIU-B China
CopyRight 2007-2009 WMZSOFT QQ