Displaying information about connections with other locations
The DISPLAY LOCATION command displays summary information about connections with other locations. You can also use this command to display detailed information about the conversations with other locations.
Before you begin
Procedure
To display information about connections with other locations, use the following approaches:
Example
The DISPLAY LOCATION command displays the following types of information for each DBMS that has active connections, except for the local subsystem:
- The network address for the location:
- For remote locations accessed through SNA connections, the location name the SNA LU name.
- For remote locations accessed through TCP/IP connections, the location name is the dotted decimal IPv4 or colon hexadecimal IPv6 address. If the T column contains R, the IP address is concatenated with the port value of the remote location.
- The PRDID, which identifies the database product at the location.The product identifier (PRDID) value is an 8-byte character value in pppvvrrm format, where: ppp is a 3-letter product code; vv is the version;rr is the release; and m is the modification level. For Db2 13 for z/OS, the modification level (0–9 or A–Z) indicates a specific function level. For example:
- DSN13012 for V13R1M501.
- DSN13011 for V13R1M500.
- DSN13010 for V13R1M100.
- Whether the local system is requesting data from the remote system, or acting as a server to the remote system. 'R' indicates a requester connection from local subsystem accessing the remote system. 'S' indicates a server connection from remote system accessing the local subsystem.
- The number of connections that have a particular attribute from or to the location. The attribute value is blank for the message line that contains the total number of connections for the location. Additional lines for connections with particular attributes are shown only when a detailed report is requested.
- The total number of conversations that are in use between the local system and the remote system
For example, suppose two threads are at location USIBMSTODB21. One thread is a database access thread that is related to a non-Db2 requester system, and the other is an allied thread that goes from USIBMSTODb21 to the non-Db2 server system. Both threads use SNA connections. The DISPLAY LOCATION command that is issued at USIBMSTODB21 displays the following output:
DSNL200I @ DISPLAY LOCATION REPORT FOLLOWS-
LOCATION PRDID T ATT CONNS
LUND1 R 1
LULA DSN09010 S 1
DISPLAY LOCATION REPORT COMPLETE
The following output shows the result of the
DISPLAY LOCATION(*)
command when Db2 is connected to the following DRDA partners:- TCP/IP for DRDA connections to ::FFFF:124.38.54.16
- SNA connections to LULA.
DSNL200I @ DISPLAY LOCATION REPORT FOLLOWS-
LOCATION PRDID T ATT CONNS
::FFFF:124.38.54.16..446 DSN10015 R 2
::FFFF:124.38.54.16 DSN10015 S 1
LULA DSN09010 R 1
LULA DSN09010 S 2
LULA
DISPLAY LOCATION REPORT COMPLETE
The DISPLAY LOCATION command displays information for each remote location that currently is, or once was, in contact with Db2. If a location is displayed with zero conversations, one of the following conditions exists:
- Sessions currently exist with the partner location, but no active conversations are allocated to any of the sessions.
- Sessions no longer exist with the partner, because contact with the partner has been lost.