IBM Support

PM40193: SQLCODEN478 DROP ON OBJECT TYPE PROCEDURE CANNOT BE PROCESSED BECAUSE OBJECT OF TYPE TRIGGER IS DEPENDENT ON IT.

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 APPLY jobs fails
    with a return code / RC=8 and a message:
    DROP SPECIFIC FUNCTION . ;
    error on DROP command, EXECUTE function
    DNT408I SQLCODE = -478, ERROR: DROP OR REVOKE ON OBJECT TYPE
    PROCEDURE CANNOT BE PROCESSED BECAUSE OBJECT .
    OF TYPE TRIGGER IS DEPENDENT ON IT
    DSNT418I SQLSTATE = 42893 SQLSTATE RETURN CODE
    DSNT415I SQLERRP = DSNXIDRT SQL PROCEDURE DETECTING ERROR
    DSNT416I SQLERRD    = 30  0  0  -1  0  0 SQL DIAGNOSTIC
    INFORMATION
    DSNT416I SQLERRD    = X'0000001E'  X'00000000'  X'00000000'
    X'FFFFFFFF'
             X'00000000'  X'00000000' SQL DIAGNOSTIC INFORMATION
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Object Comparison Tool      *
    *                 for z/OS who change DB2 functions and        *
    *                 procedures on which Triggers depend.         *
    ****************************************************************
    * PROBLEM DESCRIPTION: A DROP of a function or procedure may   *
    *                      fail with SQLCODEN478 / SQLCODE=-478:   *
    *                                                              *
    *                      DSNT408I SQLCODE = -478, ERROR:         *
    *                      DROP OR REVOKE ON OBJECT TYPE           *
    *                      FUNCTION  CANNOT  BE PROCESSED          *
    *                      BECAUSE OBJECT >schema<.>trigger<       *
    *                      OF TYPE TRIGGER IS DEPENDEN ON IT       *
    *                      DSNT418I SQLSTATE = 42893 SQLSTATE      *
    *                      RETURN CODE                             *
    *                      DSNT415I SQLERRP = DSNXIDRT SQL         *
    *                      PROCEDURE DETECTING ERROR               *
    *                                                              *
    *                      if a trigger depends upon the function  *
    *                      or procedure.  DB2 Object Comparison    *
    *                      Tool did not recognize the dependency   *
    *                      and was attempting to drop the          *
    *                      independent object before the           *
    *                      dependency was removed.                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When a trigger depends upon a function or procedure that is
    to be dropped, the trigger will be dropped first.  The
    function or procedure will be dropped after the trigger.
    The function or procedure will be recreated, and then
    the trigger will be recreated.
    

Problem conclusion

  • The DB2 Object Comparison Tool has been corrected. The user
    must ensure that all triggers that depend on functions or
    procedures that may be dropped and recreated are included in
    the DB2 Object Compare run.  As an aid to this requirement,
    triggers have been added to the group of schema objects.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM40193

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    720

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-05-26

  • Closed date

    2012-02-16

  • Last modified date

    2012-03-01

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

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

    UK76289

Modules/Macros

  •    GOCDB2
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA10 PSY UK76289

       UP12/02/18 P F202

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

Document Information

Modified date:
01 March 2012