23.5.2 Specifying port numbers

This section describes the different ways to specify port numbers.

Organization of this subsection
(1) Client environment definition
(2) System common definition and unit control information definition
(3) Communications port numbers

(1) Client environment definition

See Client environment definition (setting environment variables) in the HiRDB Version 9 UAP Development Guide.

(2) System common definition and unit control information definition

This subsection describes the port numbers that are used, depending on whether system common definition and unit control information definition operands are specified.

To lock the port number specified in an operand, see the Port number used column in the table, and specify the applicable operand in a combination that uses that port number. For example, in (a) HiRDB port numbers, to lock the port number specified in the pd_name_port operand for HiRDB/Parallel Server, do not specify pdunit -p.

(a) HiRDB port numbers

HiRDB port numbers are specified in the pd_name_port operand and in the pdunit operand's -p option. This subsection describes the port numbers that are used when these operands are specified.

For HiRDB/Single Server
pd_name_portpdunit -pPort number used
SpecifiedSpecifiedPort specified in pd_name_port
Not specified
Not specifiedSpecified20,000
Not specified
For HiRDB/Parallel Server
pd_name_portpdunit -pPort number used
SpecifiedSpecifiedPort specified in pdunit -p
Not specifiedPort specified in pd_name_port
Not specifiedSpecifiedPort specified in pdunit -p
Not specified20,000
(b) Scheduler process port numbers

Specify scheduler process port numbers in the following operands.

This subsection describes the port numbers that are used, depending on whether these operands are specified.

Location specifiedPort number used
System common definitionUnit control information definition
pd_service_portpd_scd_portpdunit -spd_service_port
SpecifiedSpecifiedSpecifiedSpecifiedPort specified in pdunit -s
Not specified
Not specifiedSpecifiedPort specified in pd_scd_port
Not specified
Not specifiedSpecifiedSpecifiedPort specified in pdunit -s
Not specified
Not specifiedSpecifiedPort specified in pd_service_port of unit control information definition
Not specified
Not specifiedSpecifiedSpecifiedSpecifiedPort specified in pdunit -s
Not specified
Not specifiedSpecifiedPort specified in pd_scd_port
Not specified
Not specifiedSpecifiedSpecifiedPort specified in pdunit -s
Not specified
Not specifiedSpecifiedPort specified in pd_service_port of unit control information definition
Not specified#
#
If the pd_registered_port operand is specified in the system common definition or the unit control information definition, a port number in the range specified in the pd_registered_port operand is used. If the pd_registered_port operand is not specified, a port number is allocated automatically by the OS.
(c) Port numbers of transaction server processes, message log server processes, and unit monitoring processes

Specify the port numbers of transaction server processes, message log server processes, and unit monitoring processes in the operands shown below.

This section describes the port numbers that are used, depending on whether these operands are specified.

pd_trn_port,
pd_mlg_port, or
pd_alv_port
pdunit -t,
-m
or -a
Port number used
SpecifiedSpecifiedPort specified in pdunit -t, -m, or -a
Not specifiedPort specified in pd_trn_port, pd_mlg_port, or pd_alv_port
Not specifiedSpecifiedPort specified in pdunit -t, -m, or -a
Not specified#
#
If the pd_registered_port operand is specified in the system common definition or unit control information definition, a port number in the range specified in the pd_registered_port operand is used. If the pd_registered_port operand is not specified, a port number is allocated automatically by the OS.
(d) Port numbers used by the HiRDB reserved port facility

Port numbers used by the HiRDB reserved port facility are specified in the pd_registered_port operand. This section describes the port numbers that are used, depending on whether these operands are specified.

Location specifiedPort number used
System common definitionUnit control information definition
pd_registered_portpd_registered_port
SpecifiedSpecifiedPort specified in the unit control information definition
Not specifiedPort specified in system common definition
Not specifiedSpecifiedPort specified in the unit control information definition
Not specified--
Legend:
--: N/A

(3) Communications port numbers

See 2.1.3 Setting up the OS environment files.