10G--如何在手工重建OEM时指定port

因为一台主机上建了多个10g的数据库,这样在生成database control时就可能遇到 port 被占用的情况,这就需要我们手工来指定相关的端口号,下面给出一个例子:

emca -config dbcontrol db -DBCONTROL_HTTP_PORT 5508 -AGENT_PORT 3940 -RMI_PORT 5524 -JMS_PORT 5545

-----------------e.g

[O10TST]~$ emca -config dbcontrol db

STARTED EMCA at Nov 15, 2007 10:39:53 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.

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

You have specified the following settings

Database ORACLE_HOME ................ /opt/oracle/10.2.0/db

Database hostname ................ SZV019
Listener port number ................ 1598
Database SID ................ O10TST
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Nov 15, 2007 10:40:24 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/oracle/10.2.0/db/cfgtoollogs/emca/O10TST/emca_2007-11-15_10-39-53-AM.log.
Nov 15, 2007 10:40:28 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
Refer to the log file at /opt/oracle/10.2.0/db/cfgtoollogs/emca/O10TST/emca_2007-11-15_10-39-53-AM.log for more details.
Could not complete the configuration. Refer to the log file at /opt/oracle/10.2.0/db/cfgtoollogs/emca/O10TST/emca_2007-11-15_10-39-53-AM.log for more details.
[O10TST]~$ emca -config dbcontrol db -DBCONTROL_HTTP_PORT 1159 -AGENT_PORT 3939 -RMI_PORT 5522 -JMS_PORT 5542

STARTED EMCA at Nov 15, 2007 10:41:40 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.

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

You have specified the following settings

Database ORACLE_HOME ................ /opt/oracle/10.2.0/db

Database hostname ................ SZV019
Listener port number ................ 1598
Database SID ................ O10TST
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Nov 15, 2007 10:42:18 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/oracle/10.2.0/db/cfgtoollogs/emca/O10TST/emca_2007-11-15_10-41-40-AM.log.
Nov 15, 2007 10:42:20 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5542 is already in use.
Nov 15, 2007 10:42:20 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5522 is already in use.
Nov 15, 2007 10:42:20 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 1159 is already in use.
Nov 15, 2007 10:42:20 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 3939 is already in use.
Nov 15, 2007 10:42:30 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Cannot start Database Control. The following ports are already in use: [Database Control HTTP port:1159 EM agent port:3939 RMI port for Database Control:5522 JMS port for Database Control:5542].
Refer to the log file at /opt/oracle/10.2.0/db/cfgtoollogs/emca/O10TST/emca_2007-11-15_10-41-40-AM.log for more details.
Could not complete the configuration. Refer to the log file at /opt/oracle/10.2.0/db/cfgtoollogs/emca/O10TST/emca_2007-11-15_10-41-40-AM.log for more details.
[O10TST]~$ emca -config dbcontrol db -DBCONTROL_HTTP_PORT 5508 -AGENT_PORT 3940 -RMI_PORT 5524 -JMS_PORT 5545

STARTED EMCA at Nov 15, 2007 10:51:15 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:
Database SID: O10TST
Database Control is already configured for the database O10TST
You have chosen to configure Database Control for managing the database O10TST
This will remove the existing configuration and the default settings and perform a fresh configuration
Do you wish to continue? [yes(Y)/no(N)]: y
Listener port number: 1598
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /opt/oracle/10.2.0/db

Database hostname ................ SZV019
Listener port number ................ 1598
Database SID ................ O10TST
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Nov 15, 2007 10:51:54 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/oracle/10.2.0/db/cfgtoollogs/emca/O10TST/emca_2007-11-15_10-51-15-AM.log.
Nov 15, 2007 10:51:57 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5545 is already in use.
Nov 15, 2007 10:51:57 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5524 is already in use.
Nov 15, 2007 10:51:57 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5508 is already in use.
Nov 15, 2007 10:51:57 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 3940 is already in use.
Nov 15, 2007 10:51:57 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Nov 15, 2007 10:52:07 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Cannot start Database Control. The following ports are already in use: [Database Control HTTP port:5508 EM agent port:3940 RMI port for Database Control:5524 JMS port for Database Control:5545].
Refer to the log file at /opt/oracle/10.2.0/db/cfgtoollogs/emca/O10TST/emca_2007-11-15_10-51-15-AM.log for more details.
Could not complete the configuration. Refer to the log file at /opt/oracle/10.2.0/db/cfgtoollogs/emca/O10TST/emca_2007-11-15_10-51-15-AM.log for more details.
[O10TST]~$ emctl stop dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
http://SZV019:5508/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ...

Cannot determine Oracle Enterprise Manager 10g Database Control process. /opt/oracle/10.2.0/db/SZV019_O10TST/emctl.pid does not exist.
[O10TST]~$ emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
http://SZV019:5508/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control .............. started.
------------------------------------------------------------------
Logs are generated in directory /opt/oracle/10.2.0/db/SZV019_O10TST/sysman/log

[O10TST]~$

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29987/viewspace-52040/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29987/viewspace-52040/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值