IBM Support

IC86715: FEDERATED OBJECT REFERENCES SHOULD BE DISALLOWED WITHIN COMPILED SQL FUNCTIONS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Prior to DB2 Version 9.7 Fix Pack 6, if your application
    attempted to access a federated object from within a compiled
    SQL function, or within a stored procedure that is directly or
    indirectly called from a compiled SQL function, DB2 would report
    error SQL20136N.  As of Fix Pack 6, the error is no longer
    reported when the federated object reference occurs within the
    scope of a compiled SQL function--including any PL/SQL function.
    
      This is an error:  DB2 does not support federated object
    references that take place in the scope of a compiled SQL
    function.  The failure of DB2 to report the restriction does not
    imply support for federated object references in this context.
    
      This restriction is documented for external functions in the
    DB2 InfoCenter, but also applies to SQL functions:
    
    * CREATE FUNCTION (external scalar) statement
    http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.
    luw.sql.ref.doc/doc/r0004461.html
    
      Notes
      - If the function allows SQL, the external program must not
    attempt to access any federated objects (SQLSTATE 55047).
    

Local fix

  • Avoid the use of federated objects from within compiled SQL
    functions, or within routines called by compiled SQL functions.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Federated object user                                        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to db2 Version 10.1 FixPack 3                        *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in Version 10.1 FixPack 3
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC86715

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-09-20

  • Closed date

    2013-10-03

  • Last modified date

    2013-10-03

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

    IC86696

  • 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

  • RA10 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
03 October 2013