+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

port allocation errors on Database 10g in Linux

  1. port allocation errors on Database 10g in Linux

    I'm having trouble getting Database Control up and running in an
    Oracle Database 10g installation in RHEL4 Linux. I consistently see
    errors like these when I try to create or recreate the repository
    using emca:
    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]

    When I check these port ranges with netstat or lsof, nothing is
    running on those ports, and I can't figure out why Oracle can't work
    with them.

    Thanks for any ideas you may have.


  2. Re: port allocation errors on Database 10g in Linux

    John DeStefano wrote:

    > I'm having trouble getting Database Control up and running in an
    > Oracle Database 10g installation in RHEL4 Linux. I consistently see
    > errors like these when I try to create or recreate the repository
    > using emca:
    > 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]
    >
    > When I check these port ranges with netstat or lsof, nothing is
    > running on those ports, and I can't figure out why Oracle can't work
    > with them.


    Did you try comment them out in /etc/services ?

    --
    CdL

  3. Re: port allocation errors on Database 10g in Linux

    On Jul 16, 3:47 pm, John DeStefano wrote:
    > I'm having trouble getting Database Control up and running in an
    > Oracle Database 10g installation in RHEL4 Linux. I consistently see
    > errors like these when I try to create or recreate the repository
    > using emca:
    > 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]
    >
    > When I check these port ranges with netstat or lsof, nothing is
    > running on those ports, and I can't figure out why Oracle can't work
    > with them.
    >
    > Thanks for any ideas you may have.


    I've been reading your threads on this issue on the OTN forum, where
    you stated the following:

    Also confused by this part of the log:
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.

    .... since ORACLE_HOSTNAME is set in the oracle user's ~/.bash_profile,
    and echo $ORACLE_HOSTNAME outputs the hostname.


    which makes me believe you should check /etc/hostname because IIRC
    that's where emca is trying to get the hostname from.

    HTH.

    --
    Jeroen


  4. Re: port allocation errors on Database 10g in Linux

    On Jul 16, 10:26 am, codadilupo wrote:
    > John DeStefano wrote:
    > > I'm having trouble getting Database Control up and running in an
    > > Oracle Database 10g installation in RHEL4 Linux. I consistently see
    > > errors like these when I try to create or recreate the repository
    > > using emca:
    > > 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]

    >
    > > When I check these port ranges with netstat or lsof, nothing is
    > > running on those ports, and I can't figure out why Oracle can't work
    > > with them.

    >
    > Did you try comment them out in /etc/services ?
    >
    > --
    > CdL


    None of these port ranges ([5540-5559],RMI [5520-5539],Database
    Control [5500-5519],EM Agent [3938] | [1830-1849]) are called out in
    my services file.


  5. Re: port allocation errors on Database 10g in Linux

    Hi Jeroen,

    I had never head of /etc/hostname before; my host name was in /etc/
    hosts, but /etc/hostname did not exist. I tried creating that file
    and entering only my machine's FQDN, but that doesn't seem to have
    helped.

    If I ever get this issue solved, I will certainly post the fix on the
    OTN as well.

    Thanks,
    ~John



  6. Re: port allocation errors on Database 10g in Linux

    John DeStefano wrote:
    > I'm having trouble getting Database Control up and running in an
    > Oracle Database 10g installation in RHEL4 Linux. I consistently see
    > errors like these when I try to create or recreate the repository
    > using emca:
    > 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]
    >
    > When I check these port ranges with netstat or lsof, nothing is
    > running on those ports, and I can't figure out why Oracle can't work
    > with them.
    >
    > Thanks for any ideas you may have.


    Did you modify /etc/sysctl.conf according to Oracle's docs?

    If not you might seriously consider logging in as root,
    pasting this into a terminal window, and then reading
    the docs for the other essential changes you didn't make.

    cat >> /etc/sysctl.conf < fs.file-max = 65536
    kernel.shmall = 2097152
    kernel.shmmax = 2147483648
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    net.core.rmem_default = 1048576
    net.core.rmem_max = 1048576
    net.core.wmem_default = 262144
    net.core.wmem_max = 262144
    net.ipv4.ip_forward = 0
    net.ipv4.conf.default.rp_filter = 1
    net.ipv4.ip_local_port_range = 1024 65000
    EOF

    --
    Daniel A. Morgan
    University of Washington
    damorgan@x.washington.edu (replace x with u to respond)
    Puget Sound Oracle Users Group
    www.psoug.org

  7. Re: port allocation errors on Database 10g in Linux

    Hi Daniel,

    On Jul 16, 2:36 pm, DA Morgan wrote:
    > Did you modify /etc/sysctl.conf according to Oracle's docs?
    >


    I had added all of those (except for ip_local_port_range, the ipv4
    parameters were already there, plus one more:
    net.ipv4.conf.default.accept_source_route = 0) and did a "sysctl -p"
    to load the settings before install. So unless accept_source_route
    has some adverse effect, I think this was done correctly.

    Thanks,
    ~John


  8. Re: port allocation errors on Database 10g in Linux

    Hi,

    Just try the following commands.

    emca -reconfig ports -DBCONTROL_HTTP_PORT 1820

    emca -reconfig ports -RMI_PORT 5520

    emca -reconfig ports -JMS_PORT 5521


    ~ Manjusha



    On Jul 17, 12:22 am, John DeStefano wrote:
    > Hi Daniel,
    >
    > On Jul 16, 2:36 pm, DA Morgan wrote:
    >
    > > Did you modify /etc/sysctl.conf according to Oracle's docs?

    >
    > I had added all of those (except for ip_local_port_range, the ipv4
    > parameters were already there, plus one more:
    > net.ipv4.conf.default.accept_source_route = 0) and did a "sysctl -p"
    > to load the settings before install. So unless accept_source_route
    > has some adverse effect, I think this was done correctly.
    >
    > Thanks,
    > ~John





  9. Re: port allocation errors on Database 10g in Linux

    Hi Manjusha,

    On Jul 17, 7:36 am, manjsuha wrote:
    > Hi,
    >
    > Just try the following commands.
    > emca -reconfig ports -DBCONTROL_HTTP_PORT 1820
    > emca -reconfig ports -RMI_PORT 5520
    > emca -reconfig ports -JMS_PORT 5521
    >
    > ~ Manjusha


    All three of these commands fail with an error: "SEVERE: Database
    Control is not configured for this database."

    I noticed that the $ORACLE_HOME/[hostname]_[SID] directory was not
    created.

    When I use the DBCA to "Configure the Database with Enterprise
    Manager", I can select the check box, but "Management Service" is
    grayed out and shows "No Agents Found". The DBCA then stalls at 67%
    ("Completing Database Configuration"). When I check the emConfig.log,
    it shows the same "Failed to allocate port(s)" error as in my original
    message.

    ~John


  10. Re: port allocation errors on Database 10g in Linux

    John DeStefano wrote:
    > Hi Manjusha,
    >
    > On Jul 17, 7:36 am, manjsuha wrote:
    >> Hi,
    >>
    >> Just try the following commands.
    >> emca -reconfig ports -DBCONTROL_HTTP_PORT 1820
    >> emca -reconfig ports -RMI_PORT 5520
    >> emca -reconfig ports -JMS_PORT 5521
    >>
    >> ~ Manjusha

    >
    > All three of these commands fail with an error: "SEVERE: Database
    > Control is not configured for this database."
    >
    > I noticed that the $ORACLE_HOME/[hostname]_[SID] directory was not
    > created.
    >
    > When I use the DBCA to "Configure the Database with Enterprise
    > Manager", I can select the check box, but "Management Service" is
    > grayed out and shows "No Agents Found". The DBCA then stalls at 67%
    > ("Completing Database Configuration"). When I check the emConfig.log,
    > it shows the same "Failed to allocate port(s)" error as in my original
    > message.
    >
    > ~John


    rm -rf *

    ../runInstaller

    and if you don't understand the implications of the above ... ask.
    --
    Daniel A. Morgan
    University of Washington
    damorgan@x.washington.edu (replace x with u to respond)
    Puget Sound Oracle Users Group
    www.psoug.org

+ Reply to Thread
Page 1 of 2 1 2 LastLast