Adding Columns to the Db2 Plan_Table Table by Importing Dml - Documentation for Alter and Bmc Ami Change Manager for Db2 13.1

Use the following procedure to import DML to upgrade Db2 PLAN_TABLE tables with columns that were added by a later version of Db2.

Before you begin

Create a temporary table, as shown in the following figure that contains the new columns that were added by subsequent versions of Db2 for the PLAN_TABLE table, using Change Manager or SPUFI.

CREATE DATABASE DEMPLAN; 

CREATE TABLESPACE TS1 IN DEMPLAN; 

CREATE TABLE DEM.TESTPLAN 
  (WHEN_OPTIMIZE     CHAR(1) NOT NULL,              
   QBLOCK_TYPE       CHAR(6) NOT NULL,              
   BIND_TIME         TIMESTAMP NOT NULL,            
   OPTHINT           CHAR(8) NOT NULL WITH DEFAULT, 
   HINT_USED         CHAR(8) NOT NULL WITH DEFAULT, 
   PRIMARY_ACCESS    CHAR(1) NOT NULL WITH DEFAULT) 
IN DEMPLAN.TS1 
;
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest