IBM Support

IT24956: SQL0332N AFTER ALTERING COLUMN LENGTH

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When we use mixed codepage(such as 1363), altering column length
    returns SQL0332N.
    This happens because new value is regarded as single byte
    codepage, instead of mixed codepage.
    Please check the repro script and result like as follows.
    -------------------------------------------
    $ db2 create db test_db using codeset 1363 territory kr
    DB20000I  The CREATE DATABASE command completed successfully.
    $ db2 connect to test_db
    
       Database Connection Information
    
     Database server        = DB2/SUN64 10.5.9
     SQL authorization ID   = DBGUEST1
     Local database alias   = TEST_DB
    
    $ db2 "create table instv.tsmacpt12 (???????? char(6) NOT NULL)"
    DB20000I  The SQL command completed successfully.
    $ db2 "insert into instv.tsmacpt12 values 'test12'"
    DB20000I  The SQL command completed successfully.
    $ db2 "alter table instv.tsmacpt12 alter column "????????" set
    data type char(10)"
    DB20000I  The SQL command completed successfully.
    $ db2 "select * from instv.tsmacpt12"
    
    ????????
    ------------------------
    SQL0332N  Character conversion from the source code page "1363"
    to the target
    code page "1126" is not supported.  SQLSTATE=57017
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 11.1 Fixpack 3 Mod 2 or higher                *
    ****************************************************************
    

Problem conclusion

  • First fixed in Db2 11.1 Fixpack 3 Mod 2
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT24956

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-05-04

  • Closed date

    2018-08-07

  • Last modified date

    2018-08-07

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

    IT24525

  • 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

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
07 August 2018