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.

Methods to define the scope of a migration


You can define the scope of a migration either by using an outbound migrate profile or by explicitly specifying data structures.

See the following information in this topic:

Outbound migrate profile method

In an outbound migrate profile, you use scope rules and migrate options to define the set of data structures and the dependencies of those data structures to include in the migration.

Use the following guidelines when you create scope rules:

  • In BMC AMI Change Manager for Db2, stored procedures are not dependent upon any other Db2 object. Thus, when you create a scope rule for an object that is modified by a stored procedure or that calls a stored procedure, you cannot include the stored procedure as a dependency. To include stored procedures in the scope, you must specify them explicitly.
  • Auxiliary objects for a LOB column are dependent upon databases, table spaces, and tables.

    • If you select a database or a table space object, you must include the dependent tables or auxiliary objects.
    • If you select a table object, you must include the dependent auxiliary objects.

    To migrate auxiliary objects for a LOB column, migrate the auxiliary objects and the base table.

  • Authorizations are the only dependency on sequence objects.
  • To include the parent objects of tables in the scope, include the dependent database and table space. If the parent object is an implicit object, Change Manager ignores the object.

Specified data structures method

If you do not define the scope of a migration by using an outbound migrate profile, you can define the scope in a work ID by specifying the names of the data structures that you want to appear in a mixed list.

From the mixed list, you can specify the objects that you want to migrate for a migrate-type work ID. The following figure shows an example of a mixed list. The list displays different types of Db2 data structures.

The objects in a mixed list are displayed in hierarchical order by object type. For example, table spaces that are associated with a database appear under the database, as do the tables that are associated with a table space. The products retrieve data that can use any encoding scheme from the Db2 catalog. When the products execute SQL that uses an ORDER BY clause against the Db2 catalog, the query uses a Unicode collating sequence to sort data and typically uses the same sequence to display the data on panels and in reports. However, when the products sort the data retrieved from the Db2 catalog queries, the products display sorted data on panels and in reports in an EBCDIC collating sequence.

Success

Tip

Some object names might be too long to be displayed on a panel. To view a long object name, position the cursor on the object name and press the ZOOM (F4) key. You can specify user options for displaying the name, truncation characters, and autotab characters. To set the panel attributes, see Getting-started.

List of Db2 data structures

ALUSMXL RATE --------------------------- Mixed List ---------------------------
Command ===>                                                    Scroll. . CSR

WORKID  . . . . : RDACRJ.MIGRATE1                             Commands: CANCEL

Type action next to object and press Enter.
   E=Edit  L=Like  D=Drop  U=Undo  M=Migrate  MO=Migrate options
                                                       Objects 1 to 13 of 456
                                                                 More:     +

Act     Object-Type    Objects
************************************ TOP **************************************
        DB . . . . . . J1ALLB
          TSI. . . . .   J1ALLB     M01ICP
            TBQ. . . .     J1ALLB     T_M01ICP
              IXC. . .       J1ALLB     I_M01ICP1
             #TR . . .       J1ALLB     TRM01ICP1
             #VW . . .       J1ALLB     BV_M01ICP<>L_SELCOLS
             #VW . . .       J1ALLB     BV_M01ICP<>L_SELCOLS
             #VW . . .       J1ALLB     VW_M01ICP<>SELALL_BV
          TS . . . . .   J1ALLB     M02SSEG
            TBQ. . . .     J1ALLB     T_M02SSEG
              IX . . .       J1ALLB     I_M02SSEG1
              IX . . .       J1ALLB     I_M02SSEG2
             #TR . . .       J1ALLB     TRM02SSEG

For object-type abbreviations that Specification uses in the Mixed List panel and for the data types for the object names, see Command-and-syntax-reference.

In Change Manager, stored procedures and sequences are not dependent upon any other Db2 object and are displayed in the Unattached Objects section at the end of the mixed list (as shown in the following figure).

ALUSMXL RATE --------------------------- Mixed List ---------------------------
Command ===>                                                    Scroll. . CSR

WORKID  . . . . : RDACRJ.MIGRATE1                             Commands: CANCEL

Type action next to object and press Enter.
   E=Edit  L=Like  D=Drop  U=Undo  M=Migrate  MO=Migrate options
                                                          Objects 9 to 9 of 9
                                                                 More:   - +

Act     Object-Type    Objects
        DB . . . . . . J1ALL2
----------------------------- Unattached Objects ------------------------------
        SPE. . . . . . A29BS22C   SP02B_LEN<>IJKLMNOPZ
        SPE. . . . . . B29BO72C   SP02B_LEN<>IJKLMNOPZ
        SPE. . . . . . CM0OS2C    SP02B_LEN<>IJKLMNOPZ
        SPE. . . . . . DB2DEBUG   CREATE_SESSION
        SPE. . . . . . DB2DEBUG   DEBUGGERLEVEL
        SPE. . . . . . DB2DEBUG   DESTROY_SESSION
        SPE. . . . . . DB2DEBUG   GET_REPORT
        SPE. . . . . . DB2DEBUG   LIST_SESSION
        SPE. . . . . . DB2DEBUG   PUT_COMMAND
        SPE. . . . . . DB2DEBUG   QUERY_SESSION
        SPNA . . . . . MG017      SPSQN001             V1
        SPNA . . . . . MG017      SPSQN002             V1

As a result, if you want to migrate stored procedures that read or modify another object or that are called by another object, you must explicitly specify the stored procedures for the migration. Orphaned auxiliary indexes, which are auxiliary indexes that are not associated with an existing auxiliary table, are also displayed in the Unattached Objects section. (Orphaned auxiliary table spaces, however, are displayed in the hierarchy.)

You can use the FIND and ZOOM commands in the mixed list to find specific data structures and the dependents for those data structures.

  • You can use the FIND command to quickly locate a specific data structure. Type FI on the Command line and specify a character string on which to search. For example, you can type FI EMP and press Enter. The cursor displays at the first occurrence of a match.
  • You can use the ZOOM command in the Mixed List panel to list all of the dependents for an object in a hierarchical fashion. Type Z in the Act column adjacent to the object that you want to zoom. ZOOM displays all of the dependent objects, which includes dependent materialized query tables (MQTs).
Warning

Note

This command can take several minutes to process if the object contains dependent views.

You can use action codes (or Command line commands) on the mixed list to indicate the type of action that you want to perform. Some of the actions that you can perform are described in The following table.

Act

Action

Description

M

Migrate

(Migrate-type work ID only) Specifies the creation of data structures on the destination subsystem that are identical to those on the origin subsystem.

The work ID migrate options control which dependent objects are included in the migration. You cannot use the M action code on an orphaned auxiliary object.

MO

Migrate Options

(Migrate-type work ID only) For the selected object, overrides the default dependencies specified for the migrate-type work ID through the work ID migrate options.

You can use the MO action code to mark an object for migration and to specify dependencies.

QE

Quick Edit

Marks the selected tables for moving to a different database, table space, or both

USE

Use

Marks the selected table space as the table space into which tables flagged QE are moved

U

Undo

Reverses the action

You can also use the following command-line commands on a mixed list:

  • (Migrate-type work ID only) MIGALL marks all of the data structures, except auxiliary objects, for migration. To migrate the associated auxiliary objects for a table, you must select tables and auxiliary objects from the Migrate Options Overrides panel. You cannot migrate orphaned auxiliary objects.
  • DROPALL excludes all of the data structures that are marked for migration from being included in the migration. This command is the equivalent of typing D in the Act column for all data structures.
  • UNDOALL reverses the action on all data structures. This command is the equivalent of typing U in the Act column for all data structures.

When you indicate the type of action that you want to perform, consider the following information:

  • You can migrate auxiliary objects for a LOB column by migrating the base table that contains the LOB column and including auxiliary objects as dependents. To include the auxiliary objects as dependents, you must use the MO command on the base table, and then type Y adjacent to Migrate Tables and to Migrate Auxiliary Objects on the Migrate Options Overrides panel.You cannot edit, like, or drop auxiliary objects for a LOB column in a mixed list.

    Success

    Tip

    To migrate auxiliary objects for a LOB column, see Migrating-the-auxiliary-objects-for-a-LOB-column.

  • To exclude a dependent object or an auxiliary table or index from a migration, type D in the Act column adjacent to the object. For example, if you want to migrate a database and all of its dependent objects except for one table space, type D in the Act column adjacent to the table space. The table space is excluded from the migration.
  • You can create, like, edit, and drop external stored procedures and native SQL stored procedures.
Warning

Note

You can only migrate the following types of stored procedures:

  • External SQL stored procedures
  • Stored procedures that contain a UDT data type or an SQL table function that defines a parameter for a transition table (TABLE LIKE ... AS LOCATOR syntax)
  • All stored procedures on a Db2 subsystem that is in one of the following modes:
    • Version 9 CM or ENFM
    • Version 10 CM8 or ENFM8

BMC displays these types of procedures in the Mixed List.

For more information about the commands that you can use in a mixed list, see Command-and-syntax-reference.

Identification of changes to data structures

When you specify a change to an object, an asterisk (*) and a change-level indicator appears on a list panel adjacent to the Act column.

The M change-level indicator signifies that you selected to migrate an object. This indicator is not applicable to auxiliary objects.

When you request a change to a data structure, only the definition of the data structure and the requested changes are saved in the Change Definition (CD) tables. The specified changes do not occur in the Db2 catalog until you analyze the changes, generate a worklist, and execute the worklist.

 

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