IBM Support

IT36927: EXECUTING A PROCEDURE AFTER TRANSFER OWNERSHIP OF SPECIFIC PROCEDURE RESULTS IN SQLCODE -551 REPORTED FOR ORIGINAL OWNER.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • As user inst8 create two procedures.
    CREATE PROCEDURE TEST.PRINT_TEXT() SPECIFIC PRINTTEXT BEGIN CALL
    DBMS_OUTPUT.PUT( 'X'); END
    @
    
    CREATE PROCEDURE TEST.INVOKE_PRINT_TEXT() SPECIFIC
    INVOKEPRINTTEXT
    BEGIN
    CALL TEST.PRINT_TEXT;
    END
    @
    
    Then transfer the ownership of the procedures to the instance
    owner db2text:
    TRANSFER OWNERSHIP OF SPECIFIC PROCEDURE "TEST"."PRINTTEXT" TO
    USER db2text
    
    TRANSFER OWNERSHIP OF SPECIFIC PROCEDURE
    "TEST"."INVOKEPRINTTEXT" TO USER db2text
    
    Select from
    SELECT * FROM SYSIBMADM.PRIVILEGES WHERE objectschema = 'TEST'
    and there is nothing left for INST8 and all packages / procedure
    now owned by db2text which has execute / bind and control privs.
    
    Now login as db2text and try to execute
    db2 "call TEST.INVOKE_PRINT_TEXT"
    
    Here we see a -551 (sql0551n) that user INST8 does not have
    execute privilege on one of the packages.
    
    If a rebind is done, db2rbind all then it executes successfully.
    

Local fix

  • Run:  db2rbind <database name> -l <logfilename> all
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to 11.1.4.7                                          *
    ****************************************************************
    

Problem conclusion

  • Upgrade to 11.1.4.7
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT36927

  • 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

    2021-05-17

  • Closed date

    2022-04-16

  • Last modified date

    2022-04-16

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

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

    IT37034

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"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:
04 May 2022