尝试在windows上,重建了一下dbconsole,修改监听端口为1531,dbconsole不能用了,重建过程如下:
1.静态注册listener,1531端口
编辑listener.ora,添加如下记录进去:
LISTENER_NEW =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = nijing)(PORT = 1531))
)
)
)
SID_LIST_LISTENER_NEW =
(SID_LIST =
(SID_DESC =
(SID_NAME = test) --手工添加SID_NAME
(ORACLE_HOME = G:\oracle\product\10.1.0\db_1)
)
)
重启listener,查看状态test数据库已经注册到listenre_new 1531里面了。
C:\Documents and Settings\Administrator>lsnrctl status listener_new
LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 05-6月 -2009 09:17:00
Copyright (c) 1991, 2004, Oracle. All rights reserved.
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=nijing)(PORT=1531)))
LISTENER 的 STATUS
------------------------
别名 listener_new
版本 TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Produ
ction
启动日期 05-6月 -2009 08:44:55
正常运行时间 0 天 0 小时 32 分 5 秒
跟踪级别 off
安全性 ON: Local OS Authentication
SNMP OFF
监听程序参数文件 G:\oracle\product\10.1.0\db_1\network\admin\listener.ora
监听程序日志文件 G:\oracle\product\10.1.0\db_1\network\log\listener_new
.log
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=nijing)(PORT=1531)))
服务摘要..
服务 "test" 包含 1 个例程。
例程 "test", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
命令执行成功
检查客户端tnsping是否正常
C:\Documents and Settings\Administrator>tnsping test
TNS Ping Utility for 32-bit Windows: Version 10.1.0.2.0 - Production on 05-6月 -2009 09:17:22
Copyright (c) 1997, 2003, Oracle. All rights reserved.
已使用的参数文件:
G:\oracle\product\10.1.0\db_1\network\admin\sqlnet.ora
已使用 TNSNAMES 适配器来解析别名
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = PROTOCOL = TCP)
(HOST = nijing)(PORT = 1531))) (CONNECT_DATA = (SERVICE_NAME = test)))
OK (50 毫秒)
2.重建dbconsole
C:\Documents and Settings\Administrator>emca -r
EMCA 开始于 Fri Jun 05 08:58:02 CST 2009
输入以下有关要配置的数据库的信息
监听程序端口号: 1531
数据库 SID: test
服务名: test
通知的电子邮件地址:
通知的电子邮件网关:
dbsnmp 口令:
sysman 口令:
sys 口令:
-----------------------------------------------------------------
已指定以下设置
数据库 ORACLE_HOME ................ G:\oracle\product\10.1.0\db_1
Enterprise Manager ORACLE_HOME ................ G:\oracle\product\10.1.0\db_1
数据库主机名 ................ NIJING
监听程序端口号 ................ 1531
数据库 SID ................ test
服务名 ................ test
通知的电子邮件地址 ...............
通知的电子邮件网关 ...............
-----------------------------------------------------------------
是否继续? [是/否]: 是
已为数据库 test 配置了 DBConsole
是否要为指定的数据库重新配置 DBConsole? [是/否]: 是
请确保 DBConsole 已关闭
如果准备好继续, 请按
2009-6-5 8:58:34 oracle.sysman.emcp.EMConfig updateReposVars
信息: 正在更新文件 G:\oracle\product\10.1.0\db_1\sysman\emdrep\config\repository.variables...
2009-6-5 8:58:39 oracle.sysman.emcp.EMConfig stopOMS
信息: 正在停止 DBConsole...
2009-6-5 8:58:45 oracle.sysman.emcp.EMConfig addPortEntries
信息: 正在更新文件 G:\oracle\product\10.1.0\db_1\install\portlist.ini...
2009-6-5 8:58:46 oracle.sysman.emcp.EMConfig updateEmdProps
信息: 正在更新文件 G:\oracle\product\10.1.0\db_1\sysman\config\emd.properties...
信息: targets.xml 文件已成功更新
2009-6-5 8:58:52 oracle.sysman.emcp.EMConfig updateEmomsProps
信息: 正在更新文件 G:\oracle\product\10.1.0\db_1\sysman\config\emoms.properties...
2009-6-5 8:58:53 oracle.sysman.emcp.EMConfig updateConfigFiles
信息: emoms.properties 文件已成功更新
2009-6-5 8:59:01 oracle.sysman.emcp.EMConfig startOMS
信息: 正在启动 DBConsole...
2009-6-5 9:01:01 oracle.sysman.emcp.EMConfig perform
信息: DBConsole 已成功启动
2009-6-5 9:01:02 oracle.sysman.emcp.EMConfig perform
信息: >>>>>>>>>>> Enterprise Manager URL 为 http://NIJING:5500/em <<<<<<<<<<<
Enterprise Manager 配置已成功完成
EMCA 结束于 Fri Jun 05 09:01:02 CST 2009
C:\Documents and Settings\Administrator>emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0
Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
http://NIJING:5500/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory G:\oracle\product\10.1.0\db_1/NIJING_test/sysman/log
重建dbconsole成功。
参考文献:1.listener的静态注册与动态注册详述
http://space.itpub.net/9252210/viewspace-580699
2.emca -deconfig/config dbcontrol db (一) for single
http://space.itpub.net/9252210/viewspace-604873
3.emca -deconfig/config dbcontrol db (二) for rac
http://space.itpub.net/9252210/viewspace-605035