D Managing Oracle Database Port Numbers

During installation, Oracle Universal Installer (OUI) assigns port numbers to components from a set of default port numbers. This appendix lists the default port numbers and describes how to change the assigned port after installation. It includes information about the following topics:

D.1 About Managing Ports

During installation, Oracle Universal Installer (OUI) assigns port numbers to components from a set of default port numbers. Many Oracle Database components and services use ports. As an administrator, it is important to know the port numbers used by these services, and to ensure that the same port number is not used by two services on your host.

Most port numbers are assigned during installation. Every component and service has an allotted port range, which is the set of port numbers Oracle Database attempts to use when assigning a port. Oracle Database starts with the lowest number in the range and performs the following checks:

  • Is the port used by another Oracle Database installation on the host?

    The installation may be up or down at the time; Oracle Database can still detect if the port is used.

  • Is the port used by a process that is currently running?

    This could be any process on the host, even a non-Oracle Database process.

  • Is the port listed in the TCPIP$ETC:SERVICES.DAT?

If the answer to any of the preceding questions is yes, Oracle Database moves to the next highest port in the allotted port range and continues checking until it finds a free port.

D.2 Viewing Port Numbers and Access URLs

In most cases, the Oracle Database component's port number is listed in the tool used to configure the port. In addition, ports for some Oracle Database applications are listed in the PORTLIST.INI file. This file is located in the ORA_ROOT:[INSTALL] directory.

If you change a port number, it is not updated in the PORTLIST.INI file, so you can only rely on this file immediately after installation. To find or change a port number, use the methods described in this appendix.

D.3 Port Numbers and Protocols of Oracle Components

The following table lists the port numbers and protocols used by components that are configured during the installation. By default, the first port in the range is assigned to the component, if it is available.

Table D-1 Ports Used in Oracle Components

Component and Description Default Port Number Port Range Protocol

Oracle SQL*Net Listener

Allows Oracle client connections to the database over Oracle's SQL*Net protocol. You can configure it during installation. To reconfigure this port, use Net Configuration Assistant.

1521

1521

TCP

Data Guard

Shares the SQL*Net port and is configured during installation. To reconfigure this port, use Net Configuration Assistant to reconfigure the Oracle SQL*Net listener.

1521 (same value as the listener)

1521

TCP

Oracle Management Agent

HTTP port for Enterprise Management Agent. It is configured during installation.

"Changing the Oracle Enterprise Management Agent Port" explains how to modify its port number.

1832

1830–1849

HTTP

 

D.4 Changing the Oracle Enterprise Management Agent Port

To find the current setting for the Oracle Management agent port, search for EMD_URL in the ORA_ROOT:[host_sid.SYSMAN.CONFIG]EMD.PROPERTIES file.

To change the Oracle Management Agent HTTP port, use the emca -reconfig ports command:

$EMCA -RECONFIG PORTS -AGENT_PORT 1831