IBM Support

IC75281: ADMIN_COPY_SCHEMA() COMPLETES SUCCESSFULLY BUT THE ERROR TABLE CONTAINS SQL0901N WITH REASON "UNKNOWN DEPENDENT OBJECT TYPE: B"

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • admin_copy_schema() completes successfully but the error table
    contains sql0901n with Reason "Unknown dependent object type: B"
    
    
    Example:
    
    db2 "call sysproc.admin_copy_schema('DB2INST1', 'DB2INST2',
    'COPY', 'DB2INST2', NULL, NULL, 'DB2INST2',
    'COPY_SCHEMA_ERROR')"
    
      Value of output parameters
      --------------------------
      Parameter Name  : ERRORTABSCHEMA
      Parameter Value : DB2INST2
    
      Parameter Name  : ERRORTABNAME
      Parameter Value : COPY_SCHEMA_ERROR
    
      Return Status = 0
    
    
    In this example, all objects are copied successfully from source
    schema DB2INST1 to target scheam DB2INST2, but the error table
    DB2INST2.COPY_SCHEMA_ERROR contains sql0901n with Reason
    "Unknown dependent object type: B". For example:
    
    IBM][CLI Driver][DB2/NT] SQL0901N  The SQL statement failed
    because of a non-severe system error. Subsequent SQL statements
    can be processed.  (Reason "Unknown dependent object type: B".)
    SQLSTATE=58004
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * SQL0901N with reason  "UNKNOWN DEPENDENT OBJECT TYPE: B"     *
    * where "Object type: B" is a trigger                          *
    * Cause is with background process.                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 9.7 FP5 or newer                              *
    ****************************************************************
    

Problem conclusion

  • Problem First Fixed in DB2 Version 9.7 Fix Pack 5   (s111017)
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC75281

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-03-25

  • Closed date

    2011-12-16

  • Last modified date

    2012-07-12

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

    IZ88469

  • 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

  • R970 PSY

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC75281

Modified date: 12 July 2012