DB2 Server for VSE & VM: Operation


Displaying the Status of the Online Support

To display status information about active CICS transactions that access the application server, enter the CICS CIRD transaction. The CIRD transaction has one parameter. It operates only when the application server has been installed on CICS with the Restart Resynchronization option.



           .-Default_server--.
>>-CIRD----+-----------------+---------------------------------><
           +-*---------------+
           +-?---------------+
           '-server_name-----'
 

The parameter has the following meaning:
Parameter Default Description

SERVER_NAME
(positional
parameter 1)


Determined by
CIRB or CIRC
transaction.

This parameter enables you to specify the application server whose status is to be displayed, or * to display the status of all servers and the details of transactions accessing the servers, or ? to display a list of the connected servers without the transaction details.

If this parameter is omitted, the default server_name is the one that was determined by the CIRB or the CIRC transaction.

You can enter the CIRD transaction from any CICS terminal. You can use it before a DB2 Server for VSE application is invoked to determine the active CICS transactions that access the application server. You can use it to determine the effects on users of disabling online support or shutting down the application server.

The abnormal termination process of online support automatically invokes the CIRD transaction. CIRD output is displayed on your operator console (the system operator console) after the termination error message.

The information that the CIRD transaction displays for transactions that relate to a local application server varies depending on the types of transactions in process when CIRD is invoked:

For CIRD to display information about a transaction, the transaction must issue an SQL request. The CIRD transaction displays the following information (where applicable) for transactions that relate to a local application server:

If CIRD determines that no CICS transactions relate to the application server, the CIRD transaction displays only the time and date, and then ends.

Note:When the connection between an application server and the online support ends abnormally, the CIRD transaction is invoked automatically. The CIRD transaction is invoked implicitly to display information about transactions that were accessing the application server at the time of the failure. This information is displayed on the operator console or CICS terminal where the CIRD transaction was entered.

For the following examples, assume that SQLMACH1 is the default local application server and that connections have been established for the local application servers SQLMACH1, SQLMACH2 and SQLVM.

Figure 8 shows an example of the information displayed by the CIRD transaction with no parameters.

Figure 8. Example of CIRD with Defaults

 
2 cird
F2 002 The default server is SQLMACH1.
F2 002 ---------------------------------------------------
F2 002 DBDCCICS connected to server SQLMACH1.
F2 002 Status of online DB2 Server for VSE applications:
F2 002
F2 002 Transactions waiting to establish a link to the application server are:
F2 002
F2 002  TASKNO TRANID TERMID USER ID  USERDATA WAIT TIME
F2 002  ------ ------ ------ -------- -------- ---------
F2 002  000033 MKE2                   L222     00:01:32
F2 002  000025 INV    L224   JIM               00:08:32
F2 002
F2 002 Transactions holding a link and now accessing the application server are:
F2 002
F2 002  TASKNO TRANID TERMID USER ID  USERDATA TIME USED    TOTAL LUW
F2 002                                         FOR CURRENT  TIME
F2 002                                         ACCESS
F2 002  ------ ------ ------ -------- -------- ------------ ---------
F2 002  000019 CISQ          DEPT222  L199     00:01:32     00:03:48
F2 002  000037 INV    L209   TERRY             00:00:01     00:00:03
F2 002
F2 002 Transactions holding a link to the application server but not using are:
F2 002
F2 002  TASKNO TRANID TERMID USER ID  USERDATA TIME SINCE   TOTAL LUW
F2 002                                         LAST ACCESS  TIME
F2 002  ------ ------ ------ -------- -------- ------------ ---------
F2 002  000003 CISQ          WILLIAM  L210     00:07:01     00:10:56
F2 002
F2 002 Transactions which previously accessed the application server (not holding link):
F2 002
F2 002  TASKNO TRANID TERMID USER ID  USERDATA TIME SINCE
F2 002                                         LAST ACCESS
F2 002  ------ ------ ------ -------- -------- ------------
F2 002  000003 MKE2          ROBERT   L210     00:20:04
F2 002
F2 002  TIME=14:28:23 DATE=09/01/96
 

Figure 9 shows an example of the information displayed by the CIRD transaction with a server_name specified.

Figure 9. Example of CIRD with Server_Name

2 cird sqlmach2
F2 002 The default server is SQLMACH1.
F2 002 ---------------------------------------------------
F2 002 DBDCCICS connected to server SQLMACH2.
F2 002 Status of online DB2 Server for VSE applications:
F2 002
F2 002 Transactions waiting to establish a link to the application server are:
F2 002
F2 002  TASKNO TRANID TERMID USER ID  USERDATA WAIT TIME
F2 002  ------ ------ ------ -------- -------- ---------
F2 002  000033 MKE2                   L222     00:01:32
F2 002  000025 INV    L224   JIM               00:08:32
F2 002
F2 002 Transactions holding a link and now accessing the application server are:
F2 002
F2 002  TASKNO TRANID TERMID USER ID  USERDATA TIME USED    TOTAL LUW
F2 002                                         FOR CURRENT  TIME
F2 002                                         ACCESS
F2 002  ------ ------ ------ -------- -------- ------------ ---------
F2 002  000019 CISQ          DEPT222  L199     00:01:32     00:03:48
F2 002  000037 INV    L209   TERRY             00:00:01     00:00:03
F2 002
F2 002 Transactions holding a link to the application server but not using are:
F2 002
F2 002  TASKNO TRANID TERMID USER ID  USERDATA TIME SINCE   TOTAL LUW
F2 002                                         LAST ACCESS  TIME
F2 002  ------ ------ ------ -------- -------- ------------ ---------
F2 002  000003 CISQ          WILLIAM  L210     00:07:01     00:10:56
F2 002
F2 002 Transactions which previously accessed the application server (not holding link):
F2 002
F2 002  TASKNO TRANID TERMID USER ID  USERDATA TIME SINCE
F2 002                                         LAST ACCESS
F2 002  ------ ------ ------ -------- -------- ------------
F2 002  000003 MKE2          ROBERT   L210     00:20:04
F2 002
F2 002  TIME=14:28:23 DATE=09/03/96
 

Figure 10 shows an example of the information displayed by the CIRD transaction with the * specified.

Figure 10. Example of CIRD with *

2 cird *
F2 002 The default server is SQLMACH1.
F2 002 There are connections to server SQLMACH1.
F2 002 There are connections to server SQLMACH2.
F2 002 There are connections to server SQLVM.
F2 002 ---------------------------------------------------
F2 002 DBDCCICS connected to server SQLMACH1.
F2 002 Status of online DB2 Server for VSE applications:
F2 002
F2 002 Transactions waiting to establish a link to the application server are:
F2 002
F2 002  TASKNO TRANID TERMID USER ID  USERDATA WAIT TIME
F2 002  ------ ------ ------ -------- -------- ---------
F2 002  000033 MKE2                   L222     00:01:32
F2 002  000025 INV    L224   JIM               00:08:32
F2 002
F2 002 Transactions holding a link and now accessing the application server are:
F2 002
F2 002  TASKNO TRANID TERMID USER ID  USERDATA TIME USED    TOTAL LUW
F2 002                                         FOR CURRENT  TIME
F2 002                                         ACCESS
F2 002  ------ ------ ------ -------- -------- ------------ ---------
F2 002  000019 CISQ          DEPT222  L199     00:01:32     00:03:48
F2 002  000137 INV    L209   BOB               00:17:34     01:24:03
F2 002
F2 002 Transactions holding a link to the application server but not using are:
F2 002
F2 002  TASKNO TRANID TERMID USER ID  USERDATA TIME SINCE   TOTAL LUW
F2 002                                         LAST ACCESS  TIME
F2 002  ------ ------ ------ -------- -------- ------------ ---------
F2 002  000013 CISQ          LARRY    L210     00:03:01     00:11:36
F2 002
F2 002 Transactions which previously accessed the application server (not holding link):
F2 002
F2 002  TASKNO TRANID TERMID USER ID  USERDATA TIME SINCE
F2 002                                         LAST ACCESS
F2 002  ------ ------ ------ -------- -------- ------------
F2 002  000003 MKE2          LOUISA   L210     01:57:04
F2 002
F2 002  TIME=14:28:23 DATE=09/03/96
F2 002 ---------------------------------------------------
F2 002 DBDCCICS connected to server SQLMACH2.
F2 002 There are no active application server transactions.
F2 002
F2-002  TIME= 14:29:47 DATE= 09/03/96
F2 002 ---------------------------------------------------
F2 002 DBDCCICS connected to server SQLVM.
F2 002 There are no active application server transactions.
F2 002
F2 002  TIME=14:30:23 DATE=09/03/96

Figure 11 shows an example of the information displayed by the CIRD transaction with the ? specified.

Figure 11. Example of CIRD with ?

 
 
2 cird ?
F2 002 The default server is SQLMACH1.
F2 002 There are connections to server SQLMACH1.
F2 002 There are connections to server SQLMACH2.
F2 002 There are connections to server SQLVM.
F2 002 ---------------------------------------------------
 
 

Some extra information can be derived from the displays. In Figure 11 notice that SQLMACH1 is mentioned as the default server and on the next message that there are connections to SQLMACH1 also. It is possible, with the CIRR transaction, to remove the connections to SQLMACH1. The CIRD command would still show that the default server is SQLMACH1 but the message indicating there are connections to SQLMACH1 would not be displayed. In this scenario, users connecting to the default server would receive SQLCODE = -940 on the CONNECT statement. The CIRA transaction could be used to establish connections to SQLMACH1 again or the CIRC transaction could be used to change the default server to one of the other active servers. Either method allows CONNECT statements to access the default server.

If CIRR or CIRT has been issued to disconnect a server or to shut down the online resource adapter but cannot complete because there are still active transactions against the server, the CIRD transaction will show which transactions and which servers are affected.

Figure 12 shows an example of the information displayed by the CIRD transaction with the ? parameter specified. The attempt to remove the connections to SQLMACH2 fails because there are still active transactions. Then the CIRD transaction determines which transactions are still active. The user is found and asked to complete his work. When the CIRR command is retried it completes successfully and the connections to SQLMACH2 are shut down.

Figure 12. Example of CIRD in a Disable Scenario

2 cird ?
F2 002 The default server is SQLMACH1.
F2 002 There are connections to server SQLMACH1.
F2 002 There are connections to server SQLMACH2.
F2 002 There are connections to server SQLVM.
F2 002 ---------------------------------------------------
2 cirr ,,1,sqlmach2
F2 002 ARI0463I The DISABLE transaction CIRR must delay for a
                1-second interval before attempting the disable.
F2-002
2 cird ?
F2 002 The default server is SQLMACH1.
F2 002 There are connections to server SQLMACH1.
F2 002 Connections to SQLMACH2 are being disabled.
F2 002 There are connections to server SQLVM.
F2 002 ----------------------------------------------
F2-002
2 cird *
F2 002 The default server is SQLMACH1.
F2 002 There are connections to server SQLMACH1.
F2 002 Connections to SQLMACH2 are being disabled.
F2 002 There are connections to server SQLVM.
F2 002 ----------------------------------------------
F2 002 DBDCCICS connected to server SQLMACH1.
F2 002 There are no active application server transactions.
F2 002
F2 002  TIME= 19:07:43 DATE= 09/20/96
F2-002
F2 002 ----------------------------------------------
F2 002 DBDCCICS connected to server SQLMACH2.
F2 002 Status of online DB2 Server for VSE applications:
F2 002
F2 002 Transactions holding a link to the application server but not using are:
F2 002
F2 002  TASKNO  TRANID TERMID USER ID  USERDATA TIME SINCE  TOTAL LUW
F2 002                                          LAST ACCESS TIME
F2 002  ______  ______ ______ ________ ________ ___________ _________
F2 002  0000129 CISQ          CICSUSER L77D     00:00:31    00:00:31
F2 002
F2 002  TIME= 19:07:44 DATE= 09/20/96
F2 002 ----------------------------------------------
F2 002 DBDCCICS connected to server SQLVM.
F2 002 There are no active application server transactions.
F2 002
F2 002  TIME= 19:07:45 DATE= 09/20/96
F2-002
2 cirr ,,2,sqlmach2
F2-002 ARI0455I Connections to SQLMACH2 are disabled.
 

Figure 13 shows an example of the information displayed by the CIRD transaction.

Figure 13. Typical Information Displayed by the CIRD Transaction

+--------------------------------------------------------------------------------+
|F4 004 DBDCCIS connected to server SQLDB1_TOR_INV.                              |
|F4 004 Status of online application server applications:                        |
|F4 004                                                                          |
|F4 004 Transactions waiting to establish a link to the application server:      |
|F4 004  TASKNO TRANID TERMID USERID   USERDATA WAIT TIME                        |
|F4 004  ------ ------ ------ -------- -------- ---------                        |
|F4 004  000033 MKE2                   L222     00:01:32                         |
|F4 004  000025 INV    L224   JIM               00:08:32                         |
|F4 004                                                                          |
|F4 004 Transactions holding a link and now accessing the application server:    |
|F4 004  TASKNO TRANID TERMID USERID   USERDATA TIME USED    TOTAL LUW           |
|F4 004                                         FOR CURRENT  TIME                |
|F4 004                                         ACCESS                           |
|F4 004  ------ ------ ------ -------- -------- ------------ ---------           |
|F4 004  000019 CISQ          DEPT222  L199     00:01:32     00:03:48            |
|F4 004  000037 INV    L209   TERRY             00:00:01     00:00:03            |
|F4 004                                                                          |
|F4 004 Transactions holding a link to the application server and not using it:  |
|F4 004  TASKNO TRANID TERMID USERID   USERDATA TIME SINCE   TOTAL LUW           |
|F4 004                                         LAST ACCESS  TIME                |
|F4 004  ------ ------ ------ -------- -------- ------------ ---------           |
|F4 004  000003 CISQ          WILLIAM  L210     00:07:01     00:10:56            |
|F4 004                                                                          |
|F4 004 Transactions which previously accessed the application server (not holding a |
|F4 004  TASKNO TRANID TERMID USERID   USERDATA TIME SINCE                       |
|F4 004                                         LAST ACCESS                      |
|F4 004  ------ ------ ------ -------- -------- ------------                     |
|F4 004  000003 MKE2          ROBERT   L210     00:20:04                         |
|F4 004                                                                          |
|F4 004 TIME=14:28:23 DATE=03/23/96                                              |
+--------------------------------------------------------------------------------+

The CIRD transaction displays the following information (where applicable) for transactions that relate to a remote application server:

RDBMS
displays the name, class, and release level (version, release, and modification level) of the application server being accessed.

LU
displays the logical unit name.

TPN
displays the transaction program name. Its character and hexadecimal versions are both displayed.

TASKNO
displays the number of the task.

TRANID
displays the transaction id.

TERMID
displays the name of the terminal where the transaction was initiated.

USER ID
displays the connected user id.

STATUS
displays the communication state. COMM indicates that the transaction sent an SQL statement to the database machine and has been waiting for a reply since the time shown. APPL indicates that the transaction returned control to the application at the time shown. VRA indicates that the Online Resource Adapter is processing your request. WAIT indicates that the transaction is waiting for a session.

TIME
displays the time when the STATUS displayed had begun. For example, task number 25 has already returned control to the application at 12:17:03, as indicated by TIME.

LUWID
displays the logical unit of work identifier, which uniquely identifies an LU6.2 or TCP/IP conversation. For LU6.2 (SNA) conversation, its value is netid.luname.instance_number.sequence_number. For TCP/IP conversation, its value is ip_address.port_number.instance_number.sequence_number. The netid and luname and ip_address and port_number are up to 8 characters long, instance_number is 12 characters long, and sequence_number is 4 characters long.

Figure 14 shows an example of the information displayed by the CIRD transaction with a remote server-name specified.

Figure 14. Example of CIRD with remote server name

+--------------------------------------------------------------------------------+
|User:   2 cird sqlmach8                                                         |
|System: F2 0002 The default server is SQLMACH8.                                 |
|        F2 0002 ----------------------------------------------                  |
|        F2 0002 Status of online DB2 Server for VSE applications for            |
|        F2 0002 RDBMS = SQLMACH8 SQLDS/VM V6.1.0                                |
|        F2 0002 LU = VMC3                                                       |
|        F2 0002 TPN = SQLMACH8                                                  |
|        F2 0002       (X'07F6C4C2')                                             |
|        F2 0002                                                                 |
|        F2 0002  TASKNO  TRANID TERMID USER ID   STATUS   TIME                  |
|        F2 0002  ______  ______ ______ ________  ______   ___________________   |
|        F2 0002          LUWID                                                  |
|        F2 0002          ______                                                 |
|        F2 0002  0000891  DRT1   D080  SYSA       APPL    1998-08-11.09:12:42   |
|                                                                                |
|        F2 0002           CAIBMOML.D08001.E31FE596ADDE.0001                     |
|                                                                                |
|        F2 0002                                                                 |
|        F2 0002  TIME= 09:18:11 DATE= 08/11/98                                  |
|        F2-0002                                                                 |
+--------------------------------------------------------------------------------+

Figure 15 shows an example of the information displayed by the CIRD transaction with a ? specified, where online access to the remote server RMTSERV1 is allowed. Assume that SQLMACH1 is the default local application server and RMTSERV1 is a remote application server. Connections have been established for SQLMACH1 and online access to RMTSERV1 through the online support is allowed.

Figure 15. Example of CIRD with ?

+--------------------------------------------------------------------------------+
|User:   2 cird ?                                                                |
|System: F2 002 The default server is SQLMACH1.                                  |
|        F2 002 There are connections to server SQLMACH1.                        |
|        F2 002 Online access to remote RMTSERV1 is allowed.                     |
|        F2 002 ---------------------------------------------------              |
+--------------------------------------------------------------------------------+


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]