Recovering Db2 when the CICS attachment facility cannot connect to Db2

You can recover Db2 when the CICS® attachment facility cannot connect to Db2.

Symptoms

Any of the possible symptoms can occur:

  • CICS remains operational, but the CICS attachment facility abends.
  • The CICS attachment facility issues a message that indicates the reason for the connection failure, or it requests a X'04E' dump.
  • The reason code in the X'04E' dump indicates the reason for failure.
  • CICS issues message DFH2206 that indicates that the CICS attachment facility has terminated abnormally with the DSNC abend code.
  • CICS application programs that try to access Db2 while the CICS attachment facility is inactive are abnormally terminated. The code AEY9 is issued.

Environment

CICS backs out the abnormally terminated transaction and treats it like an application abend.

Resolving the problem

Operator response: Start the CICS attachment facility by entering the appropriate command for your release of CICS. After you start the CICS attachment facility, the following events occur:
  1. The CICS attachment facility initializes and reconnects to Db2.
  2. The CICS attachment facility requests information about the indoubt units of recovery and passes the information to CICS.
  3. CICS resolves the indoubt units of recovery.