LOCATIONS catalog table

The LOCATIONS catalog table contains a row for every accessible remote server. The schema is SYSIBM. The row associates a LOCATION name with the TCP/IP or SNA network attributes for the remote server. Requesters are not defined in this table.

Rows in this table can be inserted, updated, and deleted.

Table 1. SYSIBM.LOCATIONS table column descriptions
Column name Data type Description Use
LOCATION
VARCHAR(128)
NOT NULL
A unique location name for the accessible server. This is the name by which the remote server is known to local Db2 SQL applications. G
LINKNAME
VARCHAR(24)
NOT NULL
Identifies the VTAM® or TCP/IP attributes associated with this location. For any LINKNAME specified, one or both of the following statements must be true:
  • A row exists in SYSIBM.LUNAMES whose LUNAME matches the value specified in the SYSIBM.LOCATIONS LINKNAME column. This row specifies the VTAM communication attributes for the remote location.
  • A row exists in SYSIBM.IPNAMES whose LINKNAME matches the value specified in the SYSIBM.LOCATIONS LINKNAME column. This row specifies the TCP/IP communication attributes for the remote location.

For accelerators that are defined with an alias (logical name), specify a LINKNAME value of DSNACCELERATORALIAS.

G
IBMREQD
CHAR(1)
NOT NULL WITH
DEFAULT 'N'
A value of Y indicates that the row was provided with the Db2 product code. For all other values, see Release dependency indicators.

The value in this field is not a reliable indicator of release dependencies.

G
PORT
VARCHAR(96)
NOT NULL WITH
DEFAULT
TCP/IP is used for outbound DRDA connections when the following statement is true:
  • A row exists in SYSIBM.IPNAMES, where the LINKNAME column matches the value specified in the SYSIBM.LOCATIONS LINKNAME column.

If the above mentioned row is found, the value of the PORT column is interpreted as follows:

  • If PORT is blank, the default DRDA port (446) is used.
  • If PORT is nonblank, the value specified for PORT can take one of two forms:
    • If the value in PORT is left justified with 1-5 numeric characters, the value is assumed to be the TCP/IP port number of the remote database server.
    • Any other value is assumed to be a TCP/IP service name, which can be converted to a TCP/IP port number using the TCP/IP getservbyname socket call. TCP/IP service names are not case sensitive.
G
TPN
VARCHAR(192)
NOT NULL WITH
DEFAULT
Used only when the local Db2 begins an SNA conversation with another server. When used, TPN indicates the SNA LU 6.2 transaction program name (TPN) that will allocate the conversation. A length of zero for the column indicates the default TPN. For DRDA conversations, this is the DRDA default, which is X'07F6C4C2'. For Db2 private protocol conversations, this column is not used.

When the server is Db2 Server for VSE & VM, TPN should contain the resource ID of that machine.

G
DBALIAS
VARCHAR(128)
NOT NULL
Database alias. The name associated with the server. This name is used to access a remote database server. If DBALIAS is blank, the location name is used to access the remote database server. This column does not change the name of any database objects sent to the remote site that contains the location qualifier.

This column applies only to DRDA connections.

For information about accelerators that are defined with an alias, see Using an alias for an accelerator.

G
TRUSTED
CHAR(1)
NOT NULL WITH
DEFAULT 'N'
Indicates whether the connection to the remote server can be trusted. This is restricted to TCP/IP only. This column is ignored for connections using SNA.
Y
Location is trusted. Access to the remote location requires trusted context defined at the remote location.
N
Location is not trusted.
G
SECURE
CHAR(1)
NOT NULL WITH
DEFAULT 'N'
Indicates the use of the Secure Socket Layer (SSL) protocol for outbound DRDA connections when local Db2 applications connects to the remote database server using TCP/IP.
Y
Indicates a secure connection using SSL is required for the outbound DRDA connection.
N
Indicates a secure connection is not required for the outbound DRDA connection.
G