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
Use one of the following methods to register a wrapper:
| Method | Description |
|---|---|
| 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:
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:
|
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.
Note: You can register a wrapper to access Db2 family data sources.
If you do not create a wrapper, create server statement creates a default wrapper implicitly,
however, you must specify the server type such as DB2/UDB or DB2/LUW.