ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 10G--如何在手工重建OEM时指定port

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

原创 Linux操作系统 作者:vongates 时间:2019-07-18 22:45:02 0 删除 编辑
因为一台主机上建了多个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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2018-09-11

  • 博文量
    449
  • 访问量
    291738