IBM Support

IC84178: Administrative views return duplicated rows, although should return one, when multiple sources of rights exist in ORA mode.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • When DB2_COMPATIBILITY_VECTOR is set to ORA,  administrative
    views(all_tables, all_views etc.) the views returns duplicated
    results when more then one sources of rights exist.
    
    db2stop
    db2set DB2_COMPATIBILITY_VECTOR=ORA
    db2start
    db2sampl
    db2 connect to sample
    db2 "CREATE TABLE t1(c1 int)"
    db2 "CREATE ROLE role_test"
    db2 "CREATE ROLE role_test2"
    db2 "GRANT SELECT ON t1 TO role_test, role_test2"
    db2 "grant role role_test to user1"
    db2 "grant role role_test2 to user1"
    
    db2 -x "select * from all_tables where table_name='T1'"
    
    Result for current user:
    
    DB2INST1 DB2INST1 T1 IBMDB2SAMPLEREL -1 262144 262144 0 YES 0 0
    1 0 DISABLED 2011-10-12-13.45.14.336171 YES N IBMDEFAULTBP YES
    DISABLED
    
    Result for user1:
    
    DB2INST1 DB2INST1 T1 IBMDB2SAMPLEREL -1 262144 262144 0 YES 0 0
    1 0 DISABLED 2011-10-12-13.45.14.336171 YES N IBMDEFAULTBP YES
    DISABLED
    
    DB2INST1 DB2INST1 T1 IBMDB2SAMPLEREL -1 262144 262144 0 YES 0 0
    1 0 DISABLED 2011-10-12-13.45.14.336171 YES N IBMDEFAULTBP YES
    DISABLED
    

Local fix

  • Can add UNIQUE to the select to remove the duplicate rows.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * See Error Description                                        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * See Error Description                                        *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IC84178

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-13

  • Closed date

    2012-11-06

  • Last modified date

    2012-11-06

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

    IC79605

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

Fix information

Applicable component levels

  • RA10 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":"10.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
06 November 2012