Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

-923

Connection not establishedNEGATIVE SQLCODE · CHECKED 2026-11-14
Checked against IBM documentation

The connection to Db2 failed. The message gives a condition, a reason code and the resource involved.

QUICK ANSWER

The connection to Db2 failed. The message gives a condition, a reason code and the resource involved.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. Db2 is not up, not operational, or shutting down.
  2. A required database, table space, table or index is unavailable.
  3. The application plan does not exist, or data set allocation failed, or virtual storage is insufficient.
  4. The plan is being run from a system that was restricted when it was bound (check SYSPLSYSTEM).
  5. The CICS attachment is not up or the CICS entry is disabled.

CHECKED 14 Nov 2026 IBM: Db2 13 for z/OS: SQLCODE -923 (Db2 for z/OS 13.0.0)

MOST LIKELY

Db2 is not up, not operational, or shutting down.

FIRST CHECK

Look up the Db2 reason code in the message.

TRY IT ▸

Site search

What it means

The message names a condition such as Db2 not up, not operational, shutting down, restricted access mode, allocation error, CICS attachment not up, or CICS ENTRY disabled. SQLSTATE is 57015.

Do not issue more SQL after this code; IBM says the results would be unpredictable.

Typical causes

  • Db2 is not up, not operational, or shutting down.
  • A required database, table space, table or index is unavailable.
  • The application plan does not exist, or data set allocation failed, or virtual storage is insufficient.
  • The plan is being run from a system that was restricted when it was bound (check SYSPLSYSTEM).
  • The CICS attachment is not up or the CICS entry is disabled.

How to fix it

  1. Look up the Db2 reason code in the message.
  2. If Db2 or a required object is unavailable, wait until it is available before running the application again.
  3. If plan allocation failed, REBIND the plan to see the explanatory messages.
  4. For CICS attachment failures, fix the cause given by the reason code and restart the attachment.
  5. Do not issue further SQL after receiving -923.