IBM Support

IC82243: AFTER RUNNING SPATIAL EXTENDER UPGRADE, CREATING A SPATIAL INDEX FAILS WITH -901.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • After running the Spatial Extender upgrade stored procedure,
    either directly or through the 'db2se upgrade' command, it is
    not possible to create a new spatial index.  This fails with
    -901 and an error that some function can not be found although
    the name is not identified.
    
    Attempting to create a new feature layer with ESRI software will
    also fail.
    
    The spatial upgrade process attempts to drop and re-create most
    of the spatial objects with the most current definition.  This
    is resulting in a corruption of the spatial index extension.
    
    This problem only occurs if there are spatial indexes already
    existing in the database, although this will usually be the case
    if a spatial upgrade is performed.
    
    The upgrade process will be successful if no spatial indexes
    exist at the time the upgrade is run.
    
    A work around is to save the current spatial index definitions
    and drop the spatial indexes, then run the upgrade followed by
    re-creating the spatial indexes.
    

Local fix

  • db2se save_indexes <dbname>
    db2se upgrade <dbname>
    db2se restore_indexes <dbname>
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * DB2 Spatial Extender users using 'db2se upgrade' command     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * If a database created on DB2 V9.7 is upgraded to a current   *
    * fixpack level and the Spatial Extender 'db2se upgrade'       *
    * command is run, it is not possible to create new spatial     *
    * indexes, failing with a -901 error.                          *
    *                                                              *
    * For example:                                                 *
    * create index test on test(geom) extend using                 *
    * db2gse.spatial_index(1,0,0)                                  *
    * results in the messages                                      *
    * DB21034E  The command was processed as an SQL statement      *
    * because it was not a valid Command Line Processor command.   *
    * During SQL processing it returned:                           *
    * SQL0901N  The SQL statement failed because of a non-severe   *
    * system error.                                                *
    * Subsequent SQL statements can be processed.  (Reason         *
    * "function not found".)  SQLSTATE=58004                       *
    *                                                              *
    * If the spatial index is created by third-party application   *
    * software such as Esri ArcGIS, the failure will be reported   *
    * as an application error.                                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 V9.7 FP7                                      *
    ****************************************************************
    

Problem conclusion

  • Upgrade to DB2 V9.7 FP7
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC82243

  • 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

    2012-03-25

  • Closed date

    2012-10-23

  • Last modified date

    2012-10-23

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

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

    IC83695 IC88609

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":""}]

Document Information

Modified date:
23 October 2012