IBM Support

IT03107: DB2 MIGHT NOT CREATE IMPLIED PREDICATES ON GENERATED COLUMNS IN ORA COMPATIBILITY MODE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Description:
    
    Under rare scenarios DB2 might not create implied predicates on
    generated columns leading to unoptimized access plans if the
    following conditions are true:
    1. The DB is created with DB2_COMPATIBILITY_VECTOR=ORA
    2. The query contains one or more partitioned tables
    3. The partitioned table is partitioned on one or more generated
    columns
    4. The generated expression contains mathematical operations
    such as DIV, MULT
    5. The columns referenced in the generated expression are used
    in a local predicate
    
    example:
    
    create table test_sales (a int, b int generated always as (a /
    5)) partition by range(b) (starting from (0) ending at (1000)
    every (50));
    select * from test_sales where a > 500;
    An implied predicate: b> 100 can be generated for this scenario
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All DB2 9.7 users                                            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See problem description above.                               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 10 or higher.            *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 Version 9.7 Fix Pack 10.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT03107

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-07-11

  • Closed date

    2014-10-22

  • Last modified date

    2014-10-22

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

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

    IT04365

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
22 October 2014