DB2 Version 10.1 for Linux, UNIX, and Windows

FLUSH FEDERATED CACHE statement

The FLUSH FEDERATED CACHE statement flushes the federated cache, allowing fresh metadata to be obtained the next time an SQL statement is issued against the remote table or view using a federated three part name.

When an SQL statement is issued against a remote table or view using a federated three part name, if the remote table or view is being referenced for the first time, the metadata and statistics for the remote object are retrieved and stored in a federated cache.

Invocation

This statement can be embedded in an application program or issued through the use of dynamic SQL statements. It is an executable statement that can be dynamically prepared.

Authorization

The privileges held by the authorization ID of the statement must include either SQLADM or DBADM authority.

Syntax

Read syntax diagramSkip visual syntax diagram
                          .-FOR ALL---------------------------------.   
>>-FLUSH FEDERATED CACHE--+-----------------------------------------+-><
                          '-FOR--+-remote-object-name-------------+-'   
                                 +-data-source-name.schema-name.*-+     
                                 +-data-source-name.*.*-----------+     
                                 '-SERVER--data-source-name-------'     

Description

FOR ALL
Flushes the federated cache information for all objects from all data sources. This is the default.
FOR remote-object-name
Flushes the federated cache information for a specific remote table or view.
FOR data-source-name.schema-name.*
Flushes the federated cache information for all objects in the schema identified by schema-name from the specific data source identified by data-source-name.
FOR data-source-name.*.*
Flushes the federated cache information for all objects from the specific data source identified by data-source-name.
FOR SERVER data-source-name
Flushes the federated cache information for all objects from the specific data source identified by data-source-name.

Notes

Examples