IBM InfoSphere Federation Server, Version 9.7

Registering the DB2 wrapper

You must register a wrapper to access DB2® family data sources. The federated server uses the wrapper to communicate with and retrieve data from the data sources. A wrapper is implemented as a set of library files.

Procedure

To register a wrapper:

Issue the CREATE WRAPPER statement and specify the name for the wrapper. The default wrapper name for the DB2 family data sources is DRDA®.
For example:
CREATE WRAPPER DRDA

When you use the default name to register the wrapper, you do not need to specify the library name because the federated server automatically uses the default library name that is associated with the wrapper. If the wrapper name conflicts with an existing wrapper name in the federated database, you can replace the default wrapper name with a name that you choose. However, if you do so, you must include the LIBRARY parameter in the CREATE WRAPPER statement.

For example, to register a wrapper with the name db2_wrapper on a federated server that uses the AIX® operating system, issue this statement:
CREATE WRAPPER db2_wrapper LIBRARY 'libdb2drda.a'  

The default library name is specific to the operating system of the federated server. For more information, see the list of DB2 wrapper library files.



Feedback

Update icon Last updated: 2009-10-10