论坛首页 综合技术论坛

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

浏览 9215 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2009-02-06   最后修改:2009-06-18

由于安装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  终于又看到了熟悉的页面。

论坛首页 综合技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics