IBM Support

IT08207: SYSPROC.ADMIN_DROP_SCHEMA RETURNS SQL0478N WHEN THE SCHEMA HAS 'CREATED GLOBAL TEMPORARY TABLE (CGTT)'

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • SYSPROC.ADMIN_DROP_SCHEMA fails to drop the schema when the
    schema has 'Created global temporary table (CGTT)'.
    If the schema has regular table, admin_drop_schema automatically
    drops the table and drops the schema.
    If it has 'Created global temporary table (CGTT)', it fails
    with:
    SQL0478N  DROP, ALTER, TRANSFER OWNERSHIP
    or REVOKE on object type "SCHEMA" cannot be processed because
    there is
    an object "MYSCHEMA.TABLE1", of type "CREATED TEMPORARY
    TABLE", which
    depends on it.  SQLSTATE=42893
    

Local fix

  • Drop the CGTT manually and run sysproc.admin_drop_schema
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All DB2 V9.7 users                                           *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 V9.7 Fix Pack 11 or higher.                   *
    ****************************************************************
    

Problem conclusion

  • Fixed in DB2 V9.7 Fix Pack 11.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT08207

  • 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

    2015-04-09

  • Closed date

    2015-10-07

  • Last modified date

    2015-10-07

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

    IT08158

  • 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 October 2015