www.openlinksw.com
docs.openlinksw.com

Book Home

Contents
Preface

OpenLink ODBC Driver for DB2 (Express Edition)

OpenLink ODBC Driver for DB2 (Express Edition) for Mac OS X
Installation Guide Configuration
OpenLink ODBC Driver for DB2 (Express Edition) for Windows

3.1. OpenLink ODBC Driver for DB2 (Express Edition) for Mac OS X

3.1.1. Installation Guide

The OpenLink ODBC Driver for DB2 (Express Edition) is distributed as a Disk image (DMG) file. Simply double click on the disk image 'mul6edb2.dmg' to extract the installer mpkg file:

Figure: 3.1.1.1.

Double click on the mpkg file to run the installer and following the on screen instruction as indicated below to complete the installation:

Figure: 3.1.1.2.

Installer Welcome Dialog for the OpenLink ODBC Driver for DB2 (Express Edition):

Figure: 3.1.1.3.

Please review the readme file for installation requirements and known issues:

Figure: 3.1.1.4.

Please read the software license agreement before continuing your installation:

Figure: 3.1.1.5.

Select destination volume for driver installation:

Figure: 3.1.1.6.

Choose to perform a custom or default installation of the driver:

Figure: 3.1.1.7.

If you chose the custom option select which of the components below are to be installed:

Figure: 3.1.1.8.

The software must be installed as a user with administrative privileges on the machine:

Figure: 3.1.1.9.

After the driver has been installed you will be prompted for a license file. If a license file already exists on the machine then select the 'use exisiting file' option. A trial (try) or full (buy) license can be obtain by selecting the 'try and buy' option which loads our online try and buy web page:

Figure: 3.1.1.10.

To obtain the trial license you must be a registered user on the OpenLink Web site and login with the username (e-mail address) and password for that user. Click on the 'Shop' link to visit our online shop cart to purchases a full license if required:

Figure: 3.1.1.11.

Click on the 'download license' button to obtain the license file immediately and save to your desktop. Alternatively an auto e-mail will be sent to the registered users e-mail address with a link to their OpenLink Data Space (ODS) where all trial and full license files will be stored in the Briefcase for download at a later date.

Figure: 3.1.1.12.

Select the license file to be used for the installation:

Figure: 3.1.1.13.

Installation is complete:

Figure: 3.1.1.14.

3.1.2. Configuration

To configure an ODBC DSN, run the OpenLink iODBC Administrator located in the /Applications/iODBC folder:

Figure: 3.1.2.1.

Click on the add button to Choose the ODBC Driver the DSN should be created for:

Figure: 3.1.2.2.

Choose the OpenLink DB2 Driver (Express Edition) v6.0 from the list of available drivers:

Figure: 3.1.2.3.

In the Data Source tab, select a suitable DSN name and optional description for the Data Source to be created:

Figure: 3.1.2.4.

The Connection Tab request the minimum paramters required to make a connection to the target database:

Figure: 3.1.2.5.
Table: 3.1.2.6.
FullyMaterializeLobData Indicates whether the driver retrieves LOB locators for FETCH operations. The data type of this property is boolean. If the value is true, LOB data is fully materialized within the JDBC driver when a row is fetched. If this value is false, LOB data is streamed. The driver uses locators internally to retrieve LOB data in chunks on an as-needed basis It is highly recommended that you set this value to false when you retrieve LOBs that contain large amounts of data. The default is true.
ResultSetHoldability Specifies whether cursors remain open after a commit operation. Valid values are 1 - HOLD_CURSORS_OVER_COMMIT or 2 - CLOSE_CURSORS_AT_COMMIT.
CliSchema Specifies the schema of the DB/2 shadow catalog tables or views that are searched when an application invokes a DatabaseMetaData method.
CurrentSchema Specifies the default schema name that is used to qualify unqualified database objects in dynamically prepared SQL statements. This value of this property sets the value in the CURRENT SCHEMA special register on a server other than a DB2 UDB for z/OS server. Do not set this property for a DB2 UDB for z/OS server.
CurrentSQLID Specifies: The authorization ID that is used for authorization checking on dynamically prepared CREATE, GRANT, and REVOKE SQL statements. The owner of a table space, database, storage group, or synonym that is created by a dynamically issued CREATE statement. The implicit qualifier of all table, view, alias, and index names specified in dynamic SQL statements.
CurrentFunctionPath Specifies the SQL path that is used to resolve unqualified data type names and function names in SQL statements that are in JDBC programs. The data type of this property is String. For a DB2 UDB for Linux, UNIX and Windows server, the maximum length is 254 bytes. The value is a comma-separated list of schema names. Those names can be ordinary or delimited identifiers.
CurrentLockTimeout Directs DB2 UDB for Linux, UNIX and Windows servers to wait indefinitely for a lock or to wait for the specified number of seconds for a lock when the lock cannot be obtained immediately. The data type of this property is int. A value of zero means no wait. A value of -1 means to wait indefinitely. A positive integer indicates the number of seconds to wait for a lock.
JdbcCollection Specifies the collection ID for the packages that are used by an instance of the DB2 Universal JDBC Driver at run time. The data type of jdbcCollection is String. The default is NULLID.
CurrentPackageSet Specifies the collection ID to search for DB2 packages for the DB2 Universal JDBC Driver. The data type of this property is String. The default is NULLID. If currentPackageSet is set, its value overrides the value of jdbcCollection.
CurrentPackagePath Specifies a comma-separated list of collections on the server. The DB2 server searches these collections for the DB2 packages for the DB2 Universal JDBC Driver. The precedence rules for the currentPackagePath and currentPackageSet properties follow the precedence rules for the DB2 CURRENT PACKAGESET and CURRENT PACKAGE PATH special registers.
SecurityMechanism Specifies the DRDA security mechanism. Possible values are: 3 - User ID and password, 4 - User ID only, 7 - User ID, encrypted password,9 - Encrypted user ID and password, 11 - Kerberos. If this property is specified, the specified security mechanism is the only mechanism that is used. If the security mechanism is not supported by the connection, an exception is thrown.
KerberosServerPrincipal For a data source that uses Kerberos security, specifies the name that is used for the data source when it is registered with the Kerberos Key Distribution Center (KDC).
DeferPrepares Specifies whether to defer prepare operations until run time. The data type of this property is boolean.
ClientUser Specifies the current client user name for the connection. This information is for client accounting purposes. Unlike the connection user name, this value can change during a connection. For a DB2 UDB for Linux, UNIX and Windows server, the maximum length is 255 bytes.
ClientWorkstation Specifies the workstation name for the current client for the connection. This information is for client accounting purposes. This value can change during a connection. The data type of this property is String. For a DB2 UDB for Linux, UNIX and Windows server, the maximum length is 255 bytes.
ClientApplicationInformation Specifies application information for the current client for the connection. This information is for client accounting purposes. This value can change during a connection. The data type of this property is String. For a DB2 UDB for Linux, UNIX and Windows server, the maximum length is 255 bytes.
ClientAccountingInformation Specifies accounting information for the current client for the connection. This information is for client accounting purposes. This value can change during a connection. The data type of this property is String. For a DB2 UDB for Linux, UNIX and Windows server, the maximum length is 255 bytes.

As indiacted above the paramters of the options and preferences tabs are not required for a basic connection:

Figure: 3.1.2.7.
Figure: 3.1.2.8.

Click on the 'Test Data Source' button to make a connection to the database to verify connectivity:

Figure: 3.1.2.9.

Enter a vaild username and pasword for the database:

Figure: 3.1.2.10.

A successful connection to the database has been made:

Figure: 3.1.2.11.