IBM Support

db2_all may appear to be hanging in a DB2 DPF multipartition environment if the command being running by db2_all needs user input.

Troubleshooting


Problem

In a DB2 DPF/multipartition environment, you can use db2_all command to run commands or utilities across all database partitions or on specific partition(s). However if the commands or utilities to be run by db2_all may need user input via prompting, the db2_all command may appear to be hanging, never returns from the command line while waiting for user's input indefinitely.

Symptom

For example, if you are restoring a backup into an existing database on the partition 0 using below db2_all command:


db2_all "<<+0< db2 RESTORE DB v97eee FROM /db2backup "

SQL2539W Warning! Restoring to an existing database that is the same as the
backup image database. The database files will be deleted.
Do you want to continue ? (y/n) y

The restore command would prompt you with the warning SQL2539W to ask if you would like to continue to overwrite the existing database. However even though you enter "y" on the prompt, the command would never return, appear to be hanging.

Cause

This is because db2_all does not support user prompting.

Resolving The Problem

Before running the commands or utilities via db2_all, please make sure they don't prompt user for input during running. For db2 utilities, such as BACKUP/RESTORE, please specify WITHOUT PROMPTING and/or REPLACE EXISTING when it's applicable

[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"DB2 Tools - Troubleshooting","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.1;9.5;9.7;9.8","Edition":"Advanced Enterprise Server;Enterprise Server","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 June 2018

UID

swg21685938