Upgrading Db2 Spatial Extender

Upgrading Db2 Spatial Extender requires that you upgrade your Db2 server first and then upgrade specific database objects and data in spatially enabled databases.

Before you begin

Before you start the upgrade process:
  • Ensure that your system meets the installation requirements for Db2 Spatial Extender version 11.5.
  • Ensure that you have DBADM and DATAACCESS authority on the spatially enabled databases.
  • Ensure that you have a system temporary table space with a page size of 8 KB or larger and with a minimum size of 500 pages.

About this task

If you have installed Db2 Spatial Extender Version 9.7 or version 10.1, you must complete the following steps before using an existing spatially enabled database with Db2 Spatial Extender version 11.5.

This topic describes the steps required to upgrade spatially enabled databases from an earlier version of Db2 Spatial Extender.

Procedure

To upgrade Db2 Spatial Extender to version 10.5:

  1. Upgrade your Db2 server from Version 9.7 or version 10.1 to version 11.5 using one of the following tasks:
    • Upgrading a Db2 servers (Windows)Upgrading a Db2 servers (Windows) in Upgrading to Db2 Version 10.5.

      In the upgrade task, you must select the installation type as custom to include the Spatial Extender as part of the Db2 version 11.5 installation.

    • Upgrading a Db2 server (Linux® and UNIX)Upgrading a Db2 servers (Linux and UNIX) in Upgrading to Db2 Version 10.5.

      In the upgrade task, you must select the installation type as custom to include the Spatial Extender as part of the Db2 version 11.5 installation.

    • Upgrading a Db2 pureScale® serverUpgrading a Db2 pureScale server in Upgrading to Db2 Version 10.5

      Spatial Extender server support is installed by default with the Db2 pureScale Feature. In the Introduction step, click on View Features to see that Spatial Extender server support is listed.

  2. Ensure that the auto_reval database configuration parameter for is set to DEFERRED so that any spatial objects that are invalidated during the spatial upgrade are revalidated the next time that they are accessed.
    To display the current setting of auto_reval, issue the following command:
    CONNECT TO database-name USER user-name USING password
    UPDATE GET CFG FOR database-name 
    To set auto_reval to DEFERRED, issue the following command:
    UPDATE DB CFG FOR database-name USING auto_reval DEFERRED
  3. Terminate all connections to the database.
  4. Upgrade your spatially enabled databases from Version 9.7 or version 10.1 to version 11.5 using the db2se upgrade command.

Results

Check the messages file for details on any errors you receive. The messages file also contains useful information such as indexes, views, and the geocoding setup that was upgraded.