IBM Support

IC75183: ADMIN_COPY_SCHEMA() COMPLETES SUCCESSFULLY BUT FAILS TO TRANSFERTHE OWNERSHIP OF SOME PROCEDURES AND/OR FUNCTIONS.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • admin_copy_schema() completes successfully but fails to transfer
    the ownership of some procedures and/or functions.
    
    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 sql20342n for some
    procedures and/or functions.
    
    As an example, the STATEMENT column of the error table may show
    
    TRANSFER OWNER SHIP OF SPECIFIC PROCEDURE "DB2INST2 "."CHECK_ID"
    TO USER DB2INST2 PRESERVE PRIVILEGES
    
    and the DIAGTEXT column of the error table may give an error
    such as
    
    [IBM][CLI Driver][DB2/LINUXX8664] SQL20342N  "DB2INST2" does not
    have one or more required privileges "INSERT, SELECT" on object
    "SECURITY_OBJECT"  of type "TABLE" necessary for ownership of
    the object.
    

Local fix

  • Manually invoke failed TRANSFER OWNERSHIP statements
    

Problem summary

  • ADMIN_COPY_SCHEMA() COMPLETES SUCCESSFULLY BUT FAILS TO
    TRANSFERTHE OWNERSHIP OF SOME PROCEDURES AND/OR FUNCTIONS.
    

Problem conclusion

  • The problem is first fixed in v9.7 Fix Pack 5 (s111017)
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC75183

  • 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-22

  • Closed date

    2011-12-16

  • Last modified date

    2011-12-16

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

    IZ88468

  • 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 #: IC75183

Modified date: 16 December 2011