IBM Support

IC80300: "EXPORT COMMAND FAILS ON LINUX WITH -3009 ERROR WHEN THE SELECT STATEMENT IS 64K OR GREATER IN SIZE"

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • On linux, when the select clause in import command exceeds 64k
    or more, the command may fail with -3009 error.
    
    For example:
    When the below test script is executed:
    
    db2 "create db xmldb using CODESET utf-8 TERRITORY us"
    db2 connect to xmldb
    db2 "CREATE TABLE longstmtsel( column000000000001
    VARCHAR(25),column000000000002 VARCHAR(25) )"
    db2 "INSERT INTO longstmtsel VALUES('select', 'select
    validated')"
    db2 -tvf test.clp
    
    
    cat test.clp:
    UPDATE COMMAND OPTIONS USING s OFF;
    UPDATE COMMAND OPTIONS USING c OFF;
    UPDATE DB CFG FOR XMLDB USING APPLHEAPSZ 1000 STMTHEAP 524288;
    
    !db2 -tvf 64kexport.clp;
    
    Export may return the error:
    SQL3009N  The Action String parameter is not valid or too long.
    
    File 64kexport.clp contains an import command with select clause
    exceeding 64k in size.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * clp users                                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * export command fails on linux when the select stmt exceeds   *
    * 64K                                                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * upgrade to v97fp6 or later                                   *
    ****************************************************************
    

Problem conclusion

  • problem fixed
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC80300

  • 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-12-08

  • Closed date

    2011-12-08

  • Last modified date

    2011-12-08

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

    IC79180

  • 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:
08 December 2011