IBM Support

IC74418: IF DB2_COMPATIBILITY_VECTOR=ORA THEN XMELEMENT CAN GET ERROR SQL0171N

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • DB2 V9.7 FP2 AIX with Intelligent Data Miner
    
    If the Db2 Oracle compatability feature is enabled :
    
    db2set  DB2_COMPATIBILITY_VECTOR=ORA
    
    Then the following sql statement fails as follows :
    
    $ db2 " values(  XMLELEMENT(NAME
    "itemset",XMLATTRIBUTES(date('24.12.2000')    as "group"))) "
    SQL0171N  The data type, length or value of the argument for the
    parameter in
    position "1" of routine "SYSIBM.CHAR" is incorrect. Parameter
    name: "".
    SQLSTATE=42815
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Db2 uses with Db2 Oracle compatability feature enabled       *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 V9.7 Fix Pack 5 or later                      *
    ****************************************************************
    

Problem conclusion

  • Problem first fixed in DB2 V9.7 Fix Pack 5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC74418

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-02-11

  • Closed date

    2012-11-07

  • Last modified date

    2012-11-07

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

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

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
07 November 2012