IBM Support

PM81665: SQLCODEN554 ERROR: AN AUTHORIZATION ID OR ROLE CANNOT GRANT A PRIVILEGE TO ITSELF.

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The DB2 Object Comparison Tool for z/OS builds an APPLY job
    which fails with a SQLCODE -554 / SQLCODEN554:
    ADB5044I *** INPUT
    STATEMENT:
       GRANT ALTER,DELETE,INSERT,SELECT,INDEX,UPDATE,
    REFERENCES
         ON TABLE >schema<.>table< TO >schema< WITH GRANT
    OPTION;
    sqlerror on GRANT      command, EXECUTE
    function
     DSNT408I SQLCODE = -554, ERROR:  AN AUTHORIZATION ID OR ROLE
    CANNOT
    GRANT A
              PRIVILEGE TO
    ITSELF
     DSNT418I SQLSTATE   = 42502 SQLSTATE RETURN
    CODE
     DSNT415I SQLERRP    = DSNXA07 SQL PROCEDURE DETECTING
    ERROR
     DSNT416I SQLERRD    = -120  0  0  -1  0  0 SQL DIAGNOSTIC
    INFORMATION
     DSNT416I SQLERRD    = X'FFFFFF88'  X'00000000'  X'00000000'
    

Local fix

Problem summary

  •   USERS AFFECTED: Users of the DB2 Object Comparison Tool
                      for z/OS who compare source and target
                      which includes the GRANT privilege
                      operation, and specify a value for the
                      'Run SQLID' field on panel GOC5 'Generate
                      Compare Job'.
    
      PROBLEM DESCRIPTION: The DB2 Object Comparison Tool for
                           z/OS builds an APPLY job which fails
                           with a SQLCODE -554 / SQLCODEN554:
    
                           ADB5044I     INPUT STATEMENT:
                              GRANT ALTER,DELETE,INSERT,SELECT,
                              INDEX,UPDATE,REFERENCES ON TABLE
                              >schema<.>table< TO >schema<
                              WITH GRANT OPTION
                           sqlerror on GRANT command,
                           EXECUTE function
                           DSNT408I SQLCODE = -554,
                           ERROR:  AN AUTHORIZATION ID
                           OR ROLE CANNOT GRANT A
                           PRIVILEGE TO ITSELF
                           DSNT418I SQLSTATE   = 42502
    
      RECOMMENDATION:
    
    In DB2 Object Comparison Tool for z/OS, if the user specified a
    value for the 'Run SQLID' field on panel GOC5 'Generate Compare
    Jobs', SQLID is set for all statements including the GRANT
    statements.  An error SQLCODE -554 / SQLCODEN554 is produced
    if there is one or more GRANT statements in which the GRANTEE
    is the same as the SQLID.
    

Problem conclusion

  • Problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM81665

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    A20

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-29

  • Closed date

    2013-06-17

  • Last modified date

    2013-07-03

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

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

Modules/Macros

  • ADB2CMR
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA10 PSY UK95037

       UP13/06/19 P F306

  • RA20 PSY UK95055

       UP13/06/19 P F306

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":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.2.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
03 July 2013