IBM Support

JR42326: DRDA WRAPPER REPORTS SQL0206N WHEN ACCESSING NICKNAMES POINTING TO DB2 LUW V95 DATA SOURCE OR EARLY VERSION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Users may receive SQL0206N error while accessing DB2 LUW V95
    data source or early version via nicknames. The error message
    shows as below:
    
    SQL1822N  Unexpected error code "-206" received from data source
    "<your_server_name>". Associated text and tokens are " SQL0206N
    "NULL" is not valid in the context where it is".  SQLSTATE=560BD
    
    The error is caused by the incorrect setting of server option
    db2_null_in_select in wrapper. Because of the incorrect setting,
    remote SQL like "SELECT ..., NULL, ... FROM TABLE1" may be
    pushed down to the UDB data sources which do not support a
    statement like that.
    
    The problem only happens on Federation Server V95 with fixpack 8
    or higher,  V97 with fixpack 4 or higher.
    

Local fix

  • Set server option db2_null_in_select to 'N':
    
    ALTER SERVER <SERVER NAME> OPTIONS(ADD DB2_NULL_IN_SELECT 'N')
    OR
    ALTER SERVER <SERVER NAME> OPTIONS(SET DB2_NULL_IN_SELECT 'N')
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * The user is using DRDA wrapper accessing a nickname pointing *
    * to db2 LUW data source v95 or early verions.                 *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Federation Server V95FP10 or later.               *
    ****************************************************************
    

Problem conclusion

  • Firstly fixed in Federation Server V9.5 FP10.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR42326

  • Reported component name

    WS FED SVR INST

  • Reported component ID

    5724N9701

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-03-21

  • Closed date

    2012-08-28

  • Last modified date

    2012-08-28

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

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

    JR42327 IC84553

Fix information

  • Fixed component name

    WS FED SVR INST

  • Fixed component ID

    5724N9701

Applicable component levels

  • R950 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCAVQ2","label":"Installation"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.5","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
28 August 2012