Oracle 学习笔记:Oracle10g重新配置Database Control

由于安装oracle的时候没有设置oracle_hostname,oracle oem在%oracle_home%下面产生了两个包含我当时的ip address的目录,192.168.1.112_epcit和oc4j\j2ee\OC4J_DBConsole_192.168.1.112_epcit 这样一旦我的ip address改变了,运行emctl start dbcontrol会报错:

 

C:\>emctl status dbconsole
OC4J Configuration issue. %oracle_home%/oc4j/j2ee/OC4J_DBConsole_%ip%_%sid% not found.

 

只好重新配置database control了。

 

1。数据库和listener都必须已经启动并正常工作。

2。设置系统环境变量oracle_hostname (如果你还没有设置的话)

2。emctl stop dbconsole (如果你的db control还在运行的话)

3。sc delete OracleDBConsoleepcit (删除windows service,不删除好像最后会报错)

4。emca -config dbcontrol db -repos recreate

 

C:\>emca -config dbcontrol db -repos recreate

STARTED EMCA at Feb 6, 2009 2:50:26 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: epcit
Listener port number: 1521
Password for SYS user: change_on_install
Password for DBSNMP user: change_on_install
Password for SYSMAN user: change_on_install
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ D:\oracle\product

Database hostname ................ BLC05
Listener port number ................ 1521
Database SID ................ epcit
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]:y

 

...............

 

确认一切ok,没有出现failed字样。如果有错的话,可以查看%oracle_home%\cfgtoollogs\emca\下面的log文件。

登陆 http://blc05:5500/em  终于又看到了熟悉的页面。



已有 0 人发表留言,猛击->>这里<<-参与讨论


JavaEye推荐
  • 加入阿里巴巴,发展潜力无限
  • 浙江:百世物流科技有限公司诚聘资深Java工程师
  • 上海: 巨人网络诚聘Java, JS, 网页游戏工程师





你可能感兴趣的:(Oracle 学习笔记:Oracle10g重新配置Database Control)