Information
Limited support BMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.BMC recommends upgrading to the latest version of the product. To see documentation for that version, see ALTER and BMC AMI Change Manager for Db2 13.1.

Migrating STOGROUP-defined table space and index partitions


You can import DML to set a secondary quantity to a factor of a primary quantity for all STOGROUP-defined table spaces and indexes in a database.

Warning

Note

You can also perform this task by using the CM/PILOT DML_MIGRATE script. For more information, see Migrating-data-structures-by-using-DML.

To set secondary quantity to a factor of a primary quantity by importing DML

  1. In an ISPF editor, type one of the DML statements shown in the following DML, and provide the information that is unique to your site.

    Warning

    Note

    PRIQTY and SECQTY are expressed in 4K pages.

            MIGRATE TABLEPART
    SET SQTY = PQTY / 2 - set secondary quantity to half of primary quantity
    WHERE
           DBNAME   LIKE     'CRJ%'
       AND (PQTY    BETWEEN  4 AND 60)   -- pages, not K
       AND STORTYPE =        'I'         -- STOGROUP-defined
    ;

    MIGRATE TABLEPART
    SET SQTY = 2 * PQTY   -- set secondary quantity to twice primary quantity
    WHERE
          DBNAME   LIKE 'CRJ%'
       AND PQTY     <    4     -- pages, not K
       AND STORTYPE =    'I'   -- STOGROUP-defined
    ;

    MIGRATE INDEXPART
    JOIN SYSIBM.SYSINDEXES IX
    SET SQTY = PQTY * 1.5 -- set secondary quantity to 1 1/2 of primary
                          -- quantity
    WHERE
          STORTYPE  =    'I'
       AND IXNAME    =    IX.NAME
       AND IXCREATOR =    IX.CREATOR
       AND IX.DBNAME LIKE 'CRJ%'
    ;
  2. Import the DML file.



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

ALTER and BMC AMI Change Manager for Db2 12.1