IBM Support

IT18846: SQL0551N RECEIVED FROM A CALL TO EXPLAIN_FROM_DATA STORED PROCEDURE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • SQL0551N is received when a call to the EXPLAIN_FROM_DATA
    procedure is made by a user which does not explicitly have
    INSERT privilege on the EXPLAIN TABLES but is part of a group
    which has INSERT privilege for these tables.
    
    If the GROUP has the INSERT Privilege, it should be implicitly
    granted to the USER as it is part of the group.
    
    Following is an example of what may be seen when
    explain_from_data is run:
    db2 -v "call explain_from_data ((select section from
    sysibm.syssection fetch first 1 row only), '', null, 'SYSTOOLS',
    ?, ?, ?, ?, ?)"
    
    SQL0551N  The statement failed because the authorization ID does
    not have the required authorization or privilege to perform the
    operation.
    Authorization ID: "DB2USER".  Operation: "INSERT". Object:
    "SYSTOOLS.EXPLAIN_INSTANCE". SQLSTATE=42501
    

Local fix

  • Explicitly grant the INSERT privilege to the USER in question
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 11.1 Mod 2 Fix Pack 2 or higher               *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 11.1 Mod 2 Fix Pack 2
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT18846

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-01-16

  • Closed date

    2017-06-28

  • Last modified date

    2017-06-28

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

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

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
29 June 2020