IBM Support

PK51898: SAMPLE JOB ADBTMPDB CONTAINS AS TEMP RESULTING IN A SQLCODE -104 SQLCODEN104 WHEN EXECUTED ON DB2 910

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The DB2 Administration Tool sample member ADBTMPDB contains
    DDL which is invalid under DB2 9 resulting in a SQLCODE -104
    CREATE DATABASE "TEMPDB"
    AS TEMP
    STOGROUP SYSDEFLT;
    SQLERROR ON CREATE COMMAND, PREPARE FUNCTION
    RESULT OF SQL STATEMENT:
    DSNT408I SQLCODE = -104, ERROR: ILLEGAL SYMBOL "TEMP". SOME
    SYMBOLS THAT MIGHT BE LEGAL ARE: WORKFILE
    .
    Additional symptoms: sqlcode104 msgDSNT408I
    

Local fix

  • Query SYSIBM.SYSDATABASE and look for a database with a
    TYPE = 'W' and use that database name instead of TEMPDB if
    needed, otherwise do not run the CREATE DATABASE statement
    and amend the CREATE TABLESPACE to reference the database
    with a TYPE = 'W'.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Installers of the DB2 Administration Tool    *
    *                 creating segmented  table space in a TEMP    *
    *                 database during installation.                *
    ****************************************************************
    * PROBLEM DESCRIPTION: The Installation Step 2 : Create a      *
    *                      segmented  table  space  in a TEMP      *
    *                      database is unnecessary when using      *
    *                      DB2 V9.                                 *
    ****************************************************************
    * RECOMMENDATION: Apply The PTF.                               *
    ****************************************************************
    DB2 9 has removed the TEMP database and is now using the WORK
    database for DGTTs (Declared Global Temporary Tables).
    

Problem conclusion

  • The problems have been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK51898

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    720

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-08-28

  • Closed date

    2007-12-08

  • Last modified date

    2008-01-03

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

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

Modules/Macros

  •    ADBTMPDB
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • R720 PSY UK32069

       UP07/12/19 P F712

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"720","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
03 January 2008