IBM Support

IT04089: DB2START AND DB2STOP FAIL WITH SQL1042C ERROR AFTER SETTINGS THE DB2PATH ENVIRONMENT VARIABLE

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • When issuing db2start/db2stop you might get SQl1042C when
    environment variable DB2PATH is set as follows:
    
    export DB2PATH=$DB2DIR
    
    Example:
    
    [db2inst1t@test1 sqllib]$ echo $DB2DIR
    /opt/ibm/db2/V9.7FP9a
    [db2inst1t@test1 sqllib]$ export DB2PATH=$DB2DIR
    [db2inst1t@test1 sqllib]$ echo $DB2DIR
    /opt/ibm/db2/V9.7FP9a
    [db2inst1t@test1 sqllib]$ db2start
    SQL1042C An unexpected system error occurred. SQLSTATE=58004
    

Local fix

  • Unset DB2PATH variable
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * First Fixed in DB2 10.5 Fix Pack 5                           *
    ****************************************************************
    

Problem conclusion

  • First Fixed in DB2 10.5 Fix Pack 5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT04089

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-08-28

  • Closed date

    2017-05-09

  • Last modified date

    2017-05-09

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IT04103 IT04104

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IT04089

Modified date: 09 May 2017