IBM Support

PK36310: RUN SQLID ON VIEWS REFERENCING SYNONYMS FOR OBJECT COMPARE CREATES 2 PART NAME INCORRECTLY

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Using Object Compare and using run Sqlid for views referencing
    synonyms creates incorrect 2 part name on the create of the
    view.
    Examples of correct view
      SET CURRENT SQLID='DINO';
      SET CURRENT PATH = "SYSIBM","SYSFUN","SYSPROC","DINO" ;
      CREATE VIEW DINO.MYFILMS AS
      SELECT FILMNAME
      FROM MYTOYTB ; <<<< this is the synonym
    Examples of incorrect view after Compare
      SET CURRENT SQLID = 'DBASUP' ;
      COMMIT ;
      SET CURRENT PATH = "SYSIBM","SYSFUN","SYSPROC","DINO" ;
      CREATE VIEW DINO.MYFILMS AS
      SELECT FILMNAME
     FROM DINO.MYTOYTB ; (this is incorrect synonym)
    

Local fix

  • Please apply PTF when available.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of DB2 Object Comparison Tool.         *
    ****************************************************************
    * PROBLEM DESCRIPTION: A Object Compare 7.1 against a view     *
    *                      that uses a synonym - incorrectly       *
    *                      generates view DDL with a 2 part name   *
    *                      on the synonym when RUN SQLID is set.   *
    ****************************************************************
    * RECOMMENDATION: Apply the PTF.                               *
    ****************************************************************
    A Object Compare incorrectly generates DDL for views
    referencing synonyms when RUN SQLID is set.
    

Problem conclusion

  • The run SQLID option will be disabled for views referencing
    synonyms.The right SQLID will be set before the create view
    statement and set back to the run SQLID after.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK36310

  • Reported component name

    DB2 OBJECT COMP

  • Reported component ID

    5697G6400

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2006-12-15

  • Closed date

    2007-06-26

  • Last modified date

    2007-09-04

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  •    GOC2CMF  GOC2CMP  GOC2CMR  GOC2CMS
    

Fix information

  • Fixed component name

    DB2 OBJECT COMP

  • Fixed component ID

    5697G6400

Applicable component levels

  • R710 PSY UK26556

       UP07/08/09 P F708

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSAUVH","label":"IBM Db2 Object Comparison Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 February 2021