IC86340: DRDA WRAPPER REPORTS -901 ERROR IF SOURCE TABLE/VIEW HAS COLUMN WITH CHAR(0) DATA TYPE

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • You will encountered -901 error when creating a nickname
    pointing to a table or a view that has a column with data type
    char(0):
    
    SQL0901N  The SQL statement failed because of a non-severe
    system error. Subsequent SQL statements can be processed.
    (Reason "Invalid nickname column length".)  SQLSTATE=58004
    
    The problem is easy to be reproduced:
    ==========================================================
    db2 connect to <source dbname>
    db2 "create view test_view as select char('') as col1 from
    sysibm.sysdummy1"
    db2 connect to <fed dbname>
    db2 "create nickname nk_test for drdaserver.schema.test_view"
    ==========================================================
    

Local fix

  • Cast the CHAR(0) column to a not null column as:
    
    cast('' as char(1)) as col1
    

Problem summary

  • User affected:
      Users who use DRDA wrapper of  in InfoSphere Federation Server
    Problem description and summay:
      See error description
    

Problem conclusion

  • Problem was fistly fixed in Version 10, FixPak 2. This
    fix should be applied on the federation Server.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC86340

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-09-05

  • Closed date

    2013-01-04

  • Last modified date

    2013-01-04

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

    JR43166

  • 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

  • RA10 PSY

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

DB2 for Linux, UNIX and Windows

Software version:

10.1

Reference #:

IC86340

Modified date:

2013-01-04

Translate my page

Machine Translation

Content navigation