IBM Support

IC75279: ADMIN_COPY_SCHEMA() COMPLETES SUCCESSFULLY BUT THE ERROR TABLE CONTAINS SQL20342N FOR FUNCTION SYSCAT_COLLATIONNAME

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 sql20342n for function SYSCAT_COLLATIONNAME
    
    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 function
    SYSCAT_COLLATIONNAME. For example:
    
    IBM][CLI Driver][DB2/NT] SQL20342N  "CMMUSER1" does not have one
    or more required privileges "EXECUTE" on object
    "SYSCAT_COLLATIONNAME" of type "FUNCTION" necessary for
    ownership of the object.
    

Local fix

Problem summary

  • ADMIN_COPY_SCHEMA() COMPLETES SUCCESSFULLY BUT THE ERROR TABLE
    CONTAINS SQL20342N FOR FUNCTION SYSCAT_COLLATIONNAME
    

Problem conclusion

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

Temporary fix

Comments

APAR Information

  • APAR number

    IC75279

  • 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

    2011-12-16

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

    IZ88470

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

Modified date: 16 December 2011