升级 DB2 for z/OS 时迁移数据对象

如果您将 DB2® for z/OS® 子系统升级到更高版本,并且该子系统已配置为使用 InfoSphere® Optim™ Query Workload Tuner V3.1.1 进行调整,那么您必须迁移该配置中的数据对象。

关于此任务

要执行迁移,请修改并提交相应的 AOCTIJ JCL 作业。下表列出了每个环境的 AOCTIJ JCL 作业文件。

升级自 升级到 迁移数据对象以进行查询调整的 JCL 作业
DB2 for z/OS V8 新功能方式 DB2 for z/OS V10 转换方式(从 DB2 for z/OS V8 转换而来) AOCTIJC8
DB2 for z/OS V10 转换方式(从 DB2 for z/OS V8 转换而来) DB2 for z/OS V10 新功能方式 AOCTIJ8X
DB2 for z/OS V9 DB2 for z/OS V10 转换方式(从 DB2 for z/OS V9 转换而来) AOCTIJC9
DB2 for z/OS V10 转换方式(从 DB2 for z/OS V9 转换而来) DB2 for z/OS V10 新功能方式 AOCTIJ9X

过程

要在升级 DB2 for z/OS 时迁移数据对象:

  1. 将与 DB2 for z/OS 子系统的升级相对应的 JCL 文件上载到您的子系统。 JCL 文件位于目录 installation_directory_for_the_IBM_Data_Studio_client\QueryTunerServerConfig\all_features\ZOS\migration 中。将该文件作为 ASCII 文件上载。
  2. 请遵循注释的 Notes® 部分中的指示信息来为您的环境定制 JCL,然后提交作业。 例如,以下是文件 AOCTIJ9X 中的指示信息。
    //*  Notes =
    //*    PRIOR TO RUNNING THIS JOB, customize it for your system:
    //*    (1) Add a valid job card
    //*    (2) Locate and change all occurrences of the following strings
    //*        as indicated:
    //*        (A) '!DSN!'      to the subsystem name of your DB2
    //*        (B) 'DSNTIA!!'   to the plan name for DSNTIAD on your DB2
    //*        (C) 'DSN!!0'     to the prefix of the target library for DB2
    //*        (D) '!AOCDBRM!' to the prefix of target library for QT
    //*                          DBRMs
    //*        (E) 'USER!!'     user id for individual explain tables
    //*        (F) '!GRANTEE!   to one or more authorization IDs that
    //*                          need to use stored procedures
    //*                           SYSPROC.OPT_RUNSQL and
    //*                        SYSPROC.OPT_EXECUTE_TASK
    //*        (G) '!USERID!' to the USER ID which will have execute
    //*                           authority on packages
    //*        (H) 'PKGOWNER!'   to the owner of the QT packages
    //*        (I) '!SQLID!'     CURRENT SQLID which is set before execute
    //*                           DDLs
    //*        (J) '!WLMENV4!'   WLM environment name for SYSPROC.OPT_RUNSQL
    //*        (K) '!WLMENVJU!'  WLM environment name for
    //*                        SYSPROC.OPT_EXECUTE_TASK
    //*                           and want to capture SQL from cache.
    注意: 仅当在要迁移的配置中创建了 OPT_RUNSQL 和 OPT_EXECUTE_TASK 存储过程时,才需要步骤 AOCSP。在配置子系统用于调整时创建这些存储过程是可选的。

反馈