IBM Support

Db2stop yields SQL1042C and 'The service cannot accept control messages at this time' error on Windows in DB2 9.*

Troubleshooting


Problem

In a Windows environment, if a db2stop is issued shortly after a previous db2start request was made. When the db2stop is issued, the following error is received: SQL1042C An unexpected system error occurred.

Symptom

In addition to the SQL1042C error, the following error message may be returned to the front end:

DB2-0 : The service cannot accept control messages at this time.

where DB2-0 is the name of the DB2 service. Messages may be recorded in the db2diag.log, similar to the ones below:

2010-04-14-04.40.24.437000-240 I17085H650         LEVEL: Error            

PID     : 2972                 TID  : 3012        PROC : db2stop.exe      
INSTANCE: DB2                  NODE : 000                                
EDUID   : 3012                                                            
FUNCTION: DB2 UDB, oper system services, sqloStopDB2Service, probe:50    
DATA #2 : Hexdump, 67 bytes                                              
0x00126BA4 : 4442 322D 3020 3A20 5468 6520 7365 7276    DB2-0 : The serv  
0x00126BB4 : 6963 6520 6361 6E6E 6F74 2061 6363 6570    ice cannot accep  
0x00126BC4 : 7420 636F 6E74 726F 6C20 6D65 7373 6167    t control messag  
0x00126BD4 : 6573 2061 7420 7468 6973 2074 696D 652E    es at this time.  
0x00126BE4 : 0D0A 0A                                    ...              
                                                                         
2010-04-14-04.40.24.437000-240 I17737H654         LEVEL: Severe          
PID     : 2972                 TID  : 3012        PROC : db2stop.exe      
INSTANCE: DB2                  NODE : 000                                
EDUID   : 3012                                                            
FUNCTION: DB2 UDB, base sys utilities, sqleStartStopSingleNode, probe:70  
DATA #1 : Hexdump, 67 bytes                                              
0x00126F54 : 4442 322D 3020 3A20 5468 6520 7365 7276    DB2-0 : The serv  
0x00126F64 : 6963 6520 6361 6E6E 6F74 2061 6363 6570    ice cannot accep  
0x00126F74 : 7420 636F 6E74 726F 6C20 6D65 7373 6167    t control messag  
0x00126F84 : 6573 2061 7420 7468 6973 2074 696D 652E    es at this time.  
0x00126F94 : 0D0A 0A                                    ...              
                                                                         
2010-04-14-04.40.24.437000-240 I18393H297         LEVEL: Error            
PID     : 2972                 TID  : 3012        PROC : db2stop.exe      
INSTANCE: DB2                  NODE : 000                                
EDUID   : 3012                                                            
FUNCTION: DB2 UDB, base sys utilities, sqlePrintFinalMessage, probe:10    
RETCODE : ZRC=0xFFFFFBEE=-1042                                          

[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"OTHER - Uncategorised","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.7;9.5;9.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
30 April 2025

UID

swg21428540