Attention: This feature is in Early Adopter Program (EAP) release status. We will continue the development of additional features and
provide additional interfaces via patch updates and future releases. Please contact
Micro Focus SupportLine if you require further clarification.
Note: We recommend that you use a connection string to connect to Db2 databases; that is, using the
connect attribute within the database configuration file, which is covered in a later step (Update the Configuration File for DB2 Region and Cross-Region Databases).
Use the following steps if you do not intend to use connection strings, but instead create ODBC data sources to access region
and cross-region databases.
-
Open the ODBC Data Source Administrator.
Tip: On most newer Windows versions, click the Start Menu button, type
ODBC, and then select the appropriate desktop app.
-
On the
ODBC Data Source Administrator dialog box, select the
System DSN tab.
-
Add a new data source for a region database:
-
Click
Add.
-
Select the appropriate ODBC driver for your database (for example,
IBM DB2 ODBC Driver is a common one for Db2), and click
Finish.
The
ODBC IBM DB2 Driver - Add wizard appears.
-
Enter a name and description for the data source.
Note: This is the name of the enterprise server region, and must be 8 characters or less.
-
Click
OK.
The ODBC Data Source Administrator appears again.
-
Add a new data source for a cross-region database:
-
Click
Add.
-
Select the appropriate ODBC driver for your database (for example,
IBM DB2 ODBC Driver is a common one for Db2), and click
Finish.
The
Create New Data Source... wizard appears.
-
Enter
$XREGN$ as the name of the cross-region database and enter a description.
-
Click
OK.
The ODBC Data Source Administrator appears again.
-
Click
OK.
The data sources for a region and a cross-region database are configured. You now need to update the database configuration
file to use the data sources: see
Update the Configuration File for Db2 Region and Cross-Region Databases.