We help IT Professionals succeed at work.

Configure Dbcontrol

xoxomos
xoxomos asked
on
Medium Priority
1,483 Views
Last Modified: 2012-05-12
I'm on a virtual linux box trying to configure dbcontrol.
I get the following messages.  What needs to be done to allow Oracle to allocate the ports?
Nov 4, 2011 12:32:32 PM oracle.sysman.emcp.util.ClusterUtil getLocalNode
CONFIG: isLocalNodeDone: true localNode: null
Nov 4, 2011 12:32:32 PM oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
Nov 4, 2011 12:32:32 PM oracle.sysman.emcp.util.DBControlUtil isDBConsoleConfigured
CONFIG: Sid: BBLEARN Host: bbdevdb1 Node: null OH: /apps/app/oracle/product/10.2/db_1 isDBC: false
</product/10.2/db_1/cfgtoollogs/emca/BBLEARN/emca_2011-11-04_12-32-27-PM.log" 293L, 20823C 1,1           Top
CONFIG: Marking HTTP port: null from /apps/app/oracle/product/10.2/db_1/oc4j/j2ee/OC4J_DBConsole
Nov 4, 2011 12:32:51 PM oracle.sysman.emcp.util.PortManager getAgentPort
CONFIG: Cannot parse EMD_URL correctly. No port identified
Nov 4, 2011 12:32:51 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Marking Agent port: null from /apps/app/oracle/product/10.2/db_1/sysman/config/emd.properties
Nov 4, 2011 12:32:51 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
CONFIG: Cannnot parse EMD_URL correctly. No port identified
Nov 4, 2011 12:32:51 PM oracle.sysman.emcp.util.FileUtil getProperties
CONFIG: Error reading file /apps/app/oracle/product/10.2/db_1/install/staticports.ini
Nov 4, 2011 12:32:51 PM 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 /apps/app/oracle/product/10.2/db_1/cfgtoollogs/emca/BBLEARN/emca_2011-11-04_12-32-27-PM.log for more details.
Nov 4, 2011 12:32:51 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: 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]
        at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2250)
        at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:685)
        at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:244)
        at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:171)
        at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:170)
        at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:486)
        at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1142)
        at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:470)
        at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:419
Comment
Watch Question

Chakravarthi AyyalaDatabase Administrator
CERTIFIED EXPERT

Commented:
Is the following working?

telnet <hostname> <port>

Author

Commented:
You mean ?

C:\Documents and Settings\zozimos>telnet bbdevdb1 5500
Connecting To bbdevdb1...Could not open connection to the host, on port 5500: Co
nnect failed

Author

Commented:
Telnet bbdevdb1 21 on the other hand gives me a dos screen that says telnet bbdevdb1 along the top

Author

Commented:
looks like it gets in with telnet 21 but can't do anything

Author

Commented:
Tried being specific
bash-3.2$ emca -config dbcontrol db -repos create -SID BBLEARN -PORT 1521 \
> -DBCONTROL_HTTP_PORT 5500 -JMS_PORT 5540 -AGENT_PORT 3938

INFO: This operation is being logged at /apps/app/oracle/product/10.2/db_1/cfgtoollogs/emca/BBLEARN/emca_2011-11-04_04-21-09-PM.log.
Nov 4, 2011 4:21:27 PM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5540 is already in use.
Nov 4, 2011 4:21:27 PM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5500 is already in use.
Nov 4, 2011 4:21:27 PM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 3938 is already in use.
Nov 4, 2011 4:21:27 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Failed to allocate port(s) in the specified range(s) for the following process(es): RMI [5520-5539]
Refer to the log file at /apps/app/oracle/product/10.2/db_1/cfgtoollogs/emca/BBLEARN/emca_2011-11-04_04-21-09

Author

Commented:
tcp        0      1 134.154.186.31:41358        134.154.190.156:1521        SYN_SENT    
[ntaylor@bbdevdb1 ~]$ netstat -an | grep 5500
[ntaylor@bbdevdb1 ~]$ netstat -an | grep 1158
[ntaylor@bbdevdb1 ~]$ netstat -an | grep 5540
[ntaylor@bbdevdb1 ~]$ netstat -an | grep 5520
[ntaylor@bbdevdb1 ~]$ netstat -an | grep 3872
[ntaylor@bbdevdb1 ~]$ su - oracle
Chakravarthi AyyalaDatabase Administrator
CERTIFIED EXPERT

Commented:
See if this posting is hels you.
https://forums.oracle.com/forums/thread.jspa?threadID=294708

In simple, please check the following:

1. hostname in /etc/hosts, /etc/sysconfig/network and /proc/sys/kernel/hostname are all same
2. check the /etc/sysctl.conf file and check if contains following line:
net.ipv4.ip_local_port_range = 1024 65000

Author

Commented:
Oracle support has had me to change /etc/hosts same as google hits advise. After change no difference.
Now they ask me to send the log files from  $ORACLE_HOME/machine_name_instance_name/sysman/log
Problem is, there is no  $ORACLE_HOME/machine_name_instance_name.  That directory is created when we run the -repos create on emca,, but emca is saying it refuses to execute because i cannot communicate to and from outside.

Author

Commented:
Must have something to do with the fact this is a VMWare VM running x86-64 rather than a real machine.
Commented:
The machine had been cloned and an entirely inappropriate set of addresses had been left unchanged.

Author

Commented:
When I tried to ping the machine and instance from the machine itself nothing ever returned.  I informed someone who worked with the sa.  When he looked he saw the addresses were incorrect.