5 The DB2 Wire Protocol Driver : Connection Option Descriptions

Connection Option Descriptions
The following connection option descriptions are listed alphabetically by the GUI name that appears on the driver Setup dialog box. The connection string attribute name, along with its short name, is listed immediately underneath the GUI name. For example:
Application Using Threads
Attribute
ApplicationUsingThreads (AUT)
In most cases, the GUI name and the attribute name are the same; however, some exceptions exist. If you need to look up an option by its connection string attribute name, please refer to the alphabetical table of connection string attribute names.
Also, a few connection string attributes, for example, Password, do not have equivalent options that appear on the GUI. They are in the list of descriptions alphabetically by their attribute names.
Table 5-1 lists the connection string attributes supported by the DB2 Wire Protocol driver.
Accounting Info
Attribute
AccountingInfo (AI)
Description
Accounting information to be stored in the database. This value sets the CURRENT CLIENT_ACCTNG register (DB2 for Linux/UNIX/Windows) or the CLIENT ACCTNG register (DB2 for z/OS) in the database. This value is used by the DB2 Workload Manager.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
string
where string is the accounting information.
Default
None
GUI Tab
Client Monitoring tab
Add to Create Table
Attribute
AddStringToCreateTable (ASCT)
Description
A string that is automatically added to all Create Table statements. This option is for users who need to add an In Database clause to Create Table statements.
Valid Values
string
where string is valid syntax for the In Database clause of a Create Table statement.
Default
None
GUI Tab
Advanced tab
Alternate ID
Attribute
AlternateID (AID)
Description
The name of the default schema that is used to qualify unqualified database objects in dynamically prepared SQL statements. If the attempt to change the current schema fails, the connection fails and you receive the message Invalid value for Alternate ID. DB2 permissions must be set to SYSADM. (This option is not valid for DB2 V5R1 for iSeries.)
Valid Values
string
where string is a valid DB2 schema name.
Default
None
GUI Tab
Advanced tab
Alternate Servers
Attribute
AlternateServers (ASRV)
Description
A list of alternate database servers to which the driver tries to connect if the primary database server is unavailable. Specifying a value for this option enables connection failover for the driver. The value you specify must be in the form of a string that defines the physical location of each alternate server. All of the other required connection information for each alternate server is the same as what is defined for the primary server connection.
Valid Values
(IPAddress=ipvalue:TcpPort=portvalue:{Database | Location}=
databasevalue[, . . .])
You must specify the IP address, port number, and database name (Linux/UNIX/Windows) or location (z/OS and iSeries) of each alternate server.
NOTE: An alternate server address in IPv6 format must be enclosed in double quotation marks.
Example
The following Alternate Servers values define two alternate database servers for connection failover:
AlternateServers=(IpAddress=123.456.78.90:
TcpPort=5177:Database=DB2DAT, IpAddress=223.456.78.90:TcpPort=5178:
Database=DB2DAT3)
or
AlternateServers=(IpAddress=123.456.78.90:
TcpPort=5177:Location=DB2DAT, IpAddress=223.456.78.90:TcpPort=5178:
Location=DB2DAT3)
Default
None
GUI Tab
Failover tab
Application Name
Attribute
ApplicationName (AN)
Description
The name of the application to be stored in the database. This value sets the CURRENT CLIENT_APPLNAME register (DB2 for Linux/UNIX/Windows) or CLIENT APPLNAME register (DB2 for z/OS) in the database. For DB2 V9.1 and higher for Linux/UNIX/Windows, this value also sets the APPL_NAME value of the SYSIBMADM.APPLICATIONS table. This value is used by the DB2 Workload Manager.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
string
where string is the name of the application.
Default
None
GUI Tab
Client Monitoring tab
Application Using Threads
Attribute
ApplicationUsingThreads (AUT)
Description
Determines whether the driver works with applications using multiple ODBC threads.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the driver works with single-threaded and multi-threaded applications.
If set to 0 (Disabled), the driver does not work with multi-threaded applications. If using the driver with single-threaded applications, this value avoids additional processing required for ODBC thread-safety standards.
Default
1 (Enabled)
GUI Tab
Advanced tab
Authentication Method
Attribute
AuthenticationMethod (AM)
Description
Specifies the method the driver uses to authenticate the user to the server when a connection is established. If the specified authentication method is not supported by the database server, the connection fails and the driver generates an error.
Valid Values
0 | 1 | 2 | 3 | 4 | 7 | 8
If set to 0 (No Encryption), the driver sends the user ID and password in clear text to the server for authentication.
If set to 1 (Encrypt Password), the driver sends the user ID in clear text and an encrypted password to the server for authentication.
If set to 2 (Encrypt UID and Password), the driver sends an encrypted user ID and password to the server for authentication.
If set to 3 (Client Authentication), the driver uses client authentication when establishing a connection. The database server relies on the client to authenticate the user and does not provide additional authentication.
If set to 4 (Kerberos Authentication), the driver uses Kerberos authentication. This method supports both Windows Active Directory Kerberos and MIT Kerberos environments.
If set to 7 (Encrypted Password AES), the driver encrypts the password with 256-bit AES encryption in the connection request. (DB2 V9.7 and higher only.)
If set to 8 (Encrypted UID and Password AES), the driver encrypts the user id and password with 256-bit AES encryption in the connection request. (DB2 V9.7 and higher only.)
NOTE: The use of AES encryption (values 7 and 8) requires that the DataDirect OpenSSL library be installed.
Default
0 (No Encryption)
GUI Tab
Security tab
Batch Size
Attribute
BulkLoadBatchSize (BLBS)
Description
The number of rows that the driver sends to the database at a time during bulk operations. This value applies to all methods of bulk loading.
Valid Values
x
where x is a positive integer that specifies the number of rows to be sent.
Default
1024
GUI Tab
Bulk tab
Bulk Binary Threshold
Attribute
BulkBinaryThreshold (BBT)
Description
The maximum size, in KB, of binary data that is exported to the bulk data file.
Valid Values
-1 | 0 | x
where x is an integer that specifies the number of KB.
If set to -1, all binary data, regardless of size, is written to the bulk data file, not to an external file.
If set to 0, all binary data, regardless of size, is written to an external file, not the bulk data file. A reference to the external file is written to the bulk data file.
If set to x, any binary data exceeding this specified number of KB is written to an external file, not the bulk data file. A reference to the external file is written to the bulk data file.
Default
32
GUI Tab
Bulk tab
Bulk Character Threshold
Attribute
BulkCharacterThreshold (BCT)
Description
The maximum size, in KB, of character data that is exported to the bulk data file.
Valid Values
-1 | 0 | x
where x is an integer that specifies the number of KB.
If set to -1, all character data, regardless of size, is written to the bulk data file, not to an external file.
If set to 0, all character data regardless of size, is written to an external file, not the bulk data file. A reference to the external file is written to the bulk data file.
If set to x, any character data exceeding this specified number of KB is written to an external file, not the bulk data file. A reference to the external file is written to the bulk data file.
Default
-1
GUI Tab
Bulk tab
Catalog Schema
Attribute
CatalogSchema (CS)
Description
The DB2 schema to use for Catalog functions. Specifying a schema allows you to use copies or views of the system catalog tables for catalog functions.
Valid Values
schema_name
where schema_name is the name of a valid DB2 schema. If you do not specify a value for this attribute, the driver uses SYSIBM when connected to z/OS, QSYS2 when connected to iSeries, and SYSCAT when connected to Linux/UNIX/Windows.
Example
Create a view DB2ADMIN.TABLES from SYSCAT.TABLES.
CREATE VIEW DB2ADMIN.TABLES AS SELECT * FROM SYSCAT.TABLES WHERE OWNER LIKE 'ODBC%'
Set CatalogSchema=DB2ADMIN, and do the SQLTables thing.
"TABLE_CAT", "TABLE_SCHEM", "TABLE_NAME", "TABLE_TYPE", "REMARKS"
The results come from the DB2ADMIN.TABLES view. Three rows are fetched from five columns.
<Null>, "DB2ADMIN", "BUG", "TABLE", <Null>
<Null>, "DB2ADMIN", "DATETEST", "TABLE", <Null>
<Null>, "DB2ADMIN", "TESTCP", "TABLE", <Null>
Default
None
GUI Tab
Advanced tab
Character Set for CCSID 65535
Attribute
CharsetFor65535 (CF6)
Description
The IANA code page to be used by the driver to convert character data stored as bit data in character columns (Char, Varchar, Longvarchar, Clob, Char for Bit Data, Varchar for Bit Data, Longvarchar for Bit Data) defined with CCSID 65535.
Valid Values
0 | IANA_code_page
where IANA_code_page is a valid IANA code page. Refer to “IBM to IANA Code Page Values” in Chapter 1 of the DataDirect Connect Series for ODBC Reference for a list of the most commonly used IBM code pages and their IANA code page equivalents.
If unspecified or set to 0, the driver returns these columns as binary columns (SQL_BINARY, SQL_VARBINARY, SQL_LONGVARBINARY) and does no conversion of the data.
If an IANA code page is specified, the driver returns these columns as character columns in the character set specified. The driver does no conversion of data supplied in bound parameters.
Default
0
GUI Tab
Advanced tab
Client Host Name
Attribute
ClientHostName (CHN)
Description
The host name of the client machine to be stored in the database. This value sets the CURRENT CLIENT_WRKSTNNAME register (DB2 for Linux/UNIX/Windows) or CLIENT WRKSTNNAME register (DB2 for z/OS) in the database. This value is used by the DB2 Workload Manager.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
string
where string is the host name of the client machine.
Default
None
GUI Tab
Client Monitoring tab
Client User
Attribute
ClientUser (CU)
Description
The user ID to be stored in the database. This option sets the CURRENT CLIENT_USERID register (DB2 for Linux/UNIX/Windows) and CLIENT USERID register (DB2 for z/OS) in the database. This value is used by the DB2 Workload Manager.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
-1 | client_userid
where client_userid is a valid user ID.
The value -1 means that the driver uses the userid of the user that is currently logged onto the client.
Default
None
GUI Tab
Client Monitoring tab
Collection
Attribute
Collection (COL)
Description
The current collection or library. Valid only on DB2 for z/OS and iSeries.
For DB2 for z/OS, this value is the user ID. If an attempt to change the current schema fails, the connection fails and you receive the message Invalid value for Alternate ID.
For DB2 for iSeries, this value is the name of the schema to be used as the default qualifier for unqualified object names. If you want to access a table outside of this schema, you must specify the schema name and the table name. For example:
SELECT * FROM Schema.Tablename
Also, if the Alternate ID option is set, it overrides this option.
NOTE: This option is mutually exclusive with the Database Name option.
Valid Values
user_ID (DB2 for z/OS) | schema_name (DB2 for iSeries)
where
user_ID is a valid user ID. DB2 permissions on the user ID must be set to SYSADM.
schema_name is the default schema to use for unqualified object names.
Default
None
GUI Tab
General tab
Concurrent Access Resolution
Attribute
ConcurrentAccessResolution (CAR)
Description
Specifies whether a read-only query can access the currently committed value of rows that are locked by a transaction that is updating the rows. The driver must be connected to DB2 V9.7 for LUW or higher and the application isolation level must be either read committed or repeatable read.
Valid Values
0 | 1 | 2
If set to 0 (Automatic), the driver persists the server behavior, as specified by the cur_commit server parameter. If cur_commit is set to "Available" or "Disable," then the current behavior, pending until the row lock is released, is used. When cur_commit is set to "On," the driver returns the last committed value of the row, regardless of whether the row is locked.
If set to 1 (Wait For Outcome), the driver always waits for the transaction to be completed before returning a row of data that has been locked by another transaction, regardless of how the cur_commit parameter is configured on the server.
If set to 2 (Use Currently Committed), the driver returns the value that was committed during the last transaction if the cur_commit parameter is configured to "On" or "Available," even though the row is locked.
NOTE: This option is ignored when connecting to a DB2 server version earlier than DB2 V9.7 for LUW.
Default
0 (Automatic)
GUI Tab
Advanced tab
Connection Pooling
Attribute
Pooling (POOL)
Description
Specifies whether to use the driver’s connection pooling.
NOTE: The application must be thread-enabled to use connection pooling.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the driver uses connection pooling.
If set to 0 (Disabled), the driver does not use connection pooling.
Default
0 (Disabled)
GUI Tab
Pooling tab
Connection Reset
Attribute
ConnectionReset (CR)
Description
Determines whether the state of connections that are removed from the connection pool for reuse by the application is reset to the initial configuration of the connection.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the state of connections removed from the connection pool for reuse by an application is reset to the initial configuration of the connection. Resetting the state can negatively impact performance because additional commands must be sent over the network to the server to reset the state of the connection.
If set to 0 (Disabled), the state of connections is not reset.
Default
0 (Disabled)
GUI Tab
Pooling tab
Connection Retry Count
Attribute
ConnectionRetryCount (CRC)
Description
The number of times the driver retries connection attempts to the primary database server, and if specified, alternate servers until a successful connection is established.
This option and the Connection Retry Delay connection option, which specifies the wait interval between attempts, can be used in conjunction with failover.
Valid Values
0 | x
where x is a positive integer from 1 to 65535.
If set to 0, the driver does not try to connect after the initial unsuccessful attempt.
If set to x, the driver retries connection attempts the specified number of times. If a connection is not established during the retry attempts, the driver returns an error that is generated by the last server to which it tried to connect.
Default
0
GUI Tab
Failover tab
Connection Retry Delay
Attribute
ConnectionRetryDelay (CRD)
Description
The number of seconds the driver waits between connection retry attempts when Connection Retry Count is set to a positive integer.
This option and the Connection Retry Count connection option can be used in conjunction with failover.
Valid Values
0 | x
where x is a positive integer from 1 to 65535.
If set to 0, there is no delay between retries.
If set to x, the driver waits the specified number of seconds between connection retry attempts.
Default
3
GUI Tab
Failover tab
Current Function Path
Attribute
CurrentFunctionPath (CFP)
Description
A comma-separated list of DB2 schema names used to resolve unqualified function names and data type references in dynamically prepared SQL statements. This value also is used to resolve unqualified stored procedure names specified in CALL statements.
Valid Values
schema_name[,...]
where schema_name is the name of a valid DB2 schema.
Default
None
GUI Tab
Advanced tab
Data Source Name
Attribute
DataSourceName (DSN)
Description
The name of a data source in your Windows Registry or odbc.ini file.
Valid Values
string
where string is the name of a data source.
Default
None
GUI Tab
General tab
Database Name
Attribute
Database (DB)
Description
The name of the database to which you want to connect.
Valid only for DB2 for Linux/UNIX/Windows.
This option is mutually exclusive with the Location Name and Collection options.
Valid Values
ext
where ext is the name of the one- to three-character file name extension.
This value is used for all Create Table statements. Sending a Create Table using an extension other than the value specified for this option causes an error.
In other SQL statements, such as Select or Insert, users can specify an extension other than the one specified for this connection option. The Data File Extension value is used when no extension is specified.
Default
None
GUI Tab
General tab
Default Isolation Level
Attribute
DefaultIsolationLevel (DIL)
Description
The method by which locks on data in the database are acquired and released.
The following table shows how ODBC isolation levels map to DB2 isolation levels.
Refer to Chapter 7 “Locking and Isolation Levels” in the DataDirect Connect Series for ODBC Reference for details about ODBC isolation levels.
Valid Values
0 | 1 | 2 | 3 | 4
If set to 0 (READ_UNCOMMITTED), other processes can be read from the database. Only modified data is locked and is not released until the transaction ends.
If set to 1 (READ_COMMITTED) other processes can change a row that your application has read if the cursor is not on the row you want to change. This level prevents other processes from changing records that your application has changed until your application commits them or ends the transaction.
It also prevents your application from reading a modified record that has not been committed by another process, unless the Concurrent Access Resolution connection option is set to:
In either of these cases, the application can read the last committed value. See the connection option “Concurrent Access Resolution” for further details.
See “Cursor Stability Isolation Level” for information about enhancements to the Read Committed (Cursor Stability) isolation level.
If set to 2 (REPEATABLE_READ), other processes are prevented from accessing data that your application has read or modified. All read or modified data is locked until transaction ends.
If set to 3 (SERIALIZABLE), other processes are prevented from changing records that are read or changed by your application (including phantom records) until your program commits them or ends the transaction. This level prevents the application from reading modified records that have not been committed by another process. If your application opens the same query during a single unit of work under this isolation level, the results table will be identical to the previous table; however, it can contain updates made by your application.
If set to 4 (NONE), your application can read modified records even if they have not been committed by another application. This level can only be set in the data source, not from the application. (This level is valid only on DB2 for iSeries, and is the only isolation level that works for collections that have journaling disabled.)
Default
1 (READ_COMMITTED)
GUI Tab
Advanced tab
Description
Attribute
Description (n/a)
Description
An optional long description of a data source. This description is not used as a runtime connection attribute, but does appear in the ODBC.INI section of the Registry and in the odbc.ini file.
Valid Values
string
where string is a description of a data source.
Default
None
GUI Tab
General tab
Dynamic Sections
Attribute
DynamicSections (DS)
Description
The maximum number of prepared statements that the driver can have open at any time.
A dynamic section is associated with a prepared statement. The driver only keeps open the number of prepared statements specified by the dynamic sections value. If the driver detects that the number of dynamic sections available in the bound DB2 packages is less than the number of dynamic sections requested in the connection string or data source, it generates the following message:
The current number of dynamic sections available for use is different than the number of dynamic sections currently specified in the connection string or data source.
Valid Values
x
where x is a positive integer that specifies the number of prepared statements.
Default
1000
GUI Tab
Modify Bindings tab
Enable Bulk Load
Attribute
EnableBulkLoad (EBL)
Description
Specifies the bulk load method.
Valid Values
0 | 1
If set to 1 (Enabled), the driver uses the database bulk load protocol when an application executes an INSERT with multiple rows of parameter data. If the protocol cannot be used, the driver returns a warning.
If set to 0 (Disabled), the driver uses standard parameter arrays.
Default
0 (Disabled)
GUI Tab
Bulk tab
Encryption Method
Attribute
EncryptionMethod (EM)
Description
The method the driver uses to encrypt data sent between the driver and the database server. If the specified encryption method is not supported by the database server, the connection fails and the driver returns an error.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1 | 2
If set to 0 (No Encryption), data is not encrypted.
If set to 1 (SSL), data is encrypted using SSL. If the server supports protocol negotiation, the driver and server negotiate the use of TLS v1, SSL v3, or SSL v2 in that order.
If set to 2 (Database Encryption), data is encrypted using the DB2 encryption protocol (supported only on DB2 for Linux/UNIX/Windows and DB2 for z/OS).
This option can only be set to 1 or 2 when Authentication Method is set to 0, 1, or 2.
Default
0 (No Encryption)
GUI Tab
Security tab
Failover Granularity
Attribute
FailoverGranularity (FG)
Description
Determines whether the driver fails the entire failover process or continues with the process if errors occur while trying to reestablish a lost connection.
This option applies only when Failover Mode is set to 1 (Extended Connection) or 2 (Select).
The Alternate Servers option specifies one or multiple alternate servers for failover and is required for all failover methods.
Valid Values
0 | 1 | 2 | 3
If set to 0 (Non-Atomic), the driver continues with the failover process and posts any errors on the statement on which they occur.
If set to 1 (Atomic) the driver fails the entire failover process if an error is generated as the result of anything other than executing and repositioning a Select statement. If an error is generated as a result of repositioning a result set to the last row position, the driver continues with the failover process, but generates a warning that the Select statement must be reissued.
If set to 2 (Atomic Including Repositioning), the driver fails the entire failover process if any error is generated as the result of restoring the state of the connection or the state of work in progress.
If set to 3 (Disable Integrity Check), the driver does not verify that the rows that were restored during the failover process match the original rows. This value applies only when Failover Mode is set to 2 (Select).
Default
0 (Non-Atomic)
GUI Tab
Failover tab
Failover Mode
Attribute
FailoverMode (FM)
Description
Specifies the type of failover method the driver uses.
The Alternate Servers option specifies one or multiple alternate servers for failover and is required for all failover methods.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1 | 2
If set to 0 (Connection), the driver provides failover protection for new connections only.
If set to 1 (Extended Connection), the driver provides failover protection for new and lost connections, but not any work in progress.
If set to 2 (Select), the driver provides failover protection for new and lost connections. In addition, it preserves the state of work performed by the last Select statement executed.
Default
0 (Connection)
GUI Tab
Failover tab
Failover Preconnect
Attribute
FailoverPreconnect (FP)
Description
Specifies whether the driver tries to connect to the primary and an alternate server at the same time.
This attribute applies only when Failover Mode is set to 1 (Extended Connection) or 2 (Select) and at least one alternate server is specified.
The Alternate Servers option specifies one or multiple alternate servers for failover and is required for all failover methods.
Valid Values
0 | 1
If set to 0 (Disabled), the driver tries to connect to an alternate server only when failover is caused by an unsuccessful connection attempt or a lost connection. This value provides the best performance, but your application typically experiences a short wait while the failover connection is attempted.
If set to 1 (Enabled), the driver tries to connect to the primary and an alternate server at the same time. This can be useful if your application is time-sensitive and cannot absorb the wait for the failover connection to succeed.
Default
0 (Disabled)
GUI Tab
Failover tab
Fetch Time Stamp With Time Zone as Timestamp
Attribute
FetchTSWTZasTimestamp
Descriptio n
Determines whether the driver returns Timestamp with Time Zone columns as an ODBC SQL_TYPE_TIMESTAMP or as a SQL_VARCHAR data type.
Valid Values
0 | 1
If set to 0 (Disabled), Timestamp with Time Zone columns are mapped to SQL_VARCHAR, allowing your application to retrieve the information as a String.
If set to 1 (Enabled), the driver maps Timestamp with Time Zone columns to the ODBC SQL_TYPE_TIMESTAMP data type, which can result in time zone information being truncated.
Default
0 (map to SQL_VARCHAR)
GUI Tab
Advanced tab
Field Delimiter
Attribute
BulkLoadFieldDelimiter (BLFD)
Description
Specifies the character that the driver will use to delimit the field entries in a bulk load data file.
Valid Values
x
where x is any printable character.
For simplicity, avoid using a value that can be in the data, including all alphanumeric characters, the dash(-), the colon(:), the period (.), the forward slash (/), the space character, the single quote (') and the double quote ("). You can use some of these characters as delimiters if all of the data in the file is contained within double quotes.
NOTE: The Bulk Load Field Delimiter character must be different from the Bulk Load Record Delimiter.
Default
None
GUI Tab
Bulk tab
Grant Execute to [check box]
Attribute
GrantExecute (GE)
Description
Determines how EXECUTE privileges are granted on DB2 packages.
Valid Values
0 | 1
If set to 1 (Enabled), EXECUTE privileges are granted on DB2 packages that you are creating. By default, the schema to which privileges are granted is PUBLIC.
If set to 0 (Disabled), EXECUTE privileges are granted to the schema that created the DB2 packages.
Default
1 (Enabled)
GUI Tab
Modify Bindings tab
Grant Execute to [field]
Attribute
GrantAuthid (GA)
Description
Determines which DB2 schema is granted EXECUTE privileges for DB2 packages.
Valid Values
schema_name
where schema_name is the name of a valid DB2 schema.
Default
PUBLIC
GUI Tab
Modify Bindings tab
GSS Client Library
Attribute
GSSClient (GSSC)
Description
The name of the GSS client library that the driver uses to communicate with the Key Distribution Center (KDC).
The driver uses the path defined by the PATH environment variable for loading the specified client library.
Valid Values
native | client_library
where client_library is a GSS client library installed on the client.
If set to client_library, the driver uses the specified GSS client library.
If set to native, the driver uses the GSS client shipped with the operating system.
Default
native
GUI Tab
Security tab
Host Name In Certificate
Attribute
HostNameInCertificate (HNIC)
Description
A host name for certificate validation when SSL encryption is enabled (Encryption Method=1) and validation is enabled (Validate Server Certificate=1). This option provides additional security against man-in-the-middle (MITM) attacks by ensuring that the server the driver is connecting to is the server that was requested.
Valid Values
host_name | #SERVERNAME#
where the host_name is the host name specified in the certificate. Consult your SSL administrator for the correct value.
If set to a host name, the driver examines the subjectAltName values included in the certificate. If a dnsName value is present in the subjectAltName values, then the driver compares the value specified for Host Name In Certificate with the dnsName value. The connection succeeds if the values match. The connection fails if the Host Name In Certificate value does not match the dnsName value.
If no subjectAltName values exist or a dnsName value is not in the list of subjectAltName values, then the driver compares the value specified for Host Name In Certificate with the commonName part of the Subject name in the certificate. The commonName typically contains the host name of the machine for which the certificate was created. The connection succeeds if the values match. The connection fails if the Host Name In Certificate value does not match the commonName. If multiple commonName parts exist in the Subject name of the certificate, the connection succeeds if the Host Name In Certificate value matches any of the commonName parts.
If set to #SERVERNAME#, the driver compares the host server name specified as part of a data source or connection string to the dnsName or the commonName value.
Default
None
GUI Tab
Security tab
IANAAppCodePage
Attribute
IANAAppCodePage (IACP)
Description
An Internet Assigned Numbers Authority (IANA) value. You must specify a value for this option if your application is not Unicode‑enabled or if your database character set is not Unicode. Refer to Chapter 4 “Internationalization, Localization, and Unicode” in the DataDirect Connect Series for ODBC Reference for details.
The driver uses the specified IANA code page to convert "W" (wide) functions to ANSI.
The driver and Driver Manager both check for the value of IANAAppCodePage in the following order:
If the driver does not find an IANAAppCodePage value, the driver uses the default value of 4 (ISO 8859-1 Latin-1).
Valid Values
IANA_code_page
where IANA_code_page is one of the valid values listed in Chapter 1 “Values for the Attribute IANAAppCodePage” in the DataDirect Connect Series for ODBC Reference. The value must match the database character encoding and the system locale.
Default
4 (ISO 8559-1 Latin-1)
GUI Tab
Advanced tab
Ip Address
Attribute
IpAddress (IP)
Description
Identifies the machine where catalog tables are stored.
Valid Values
host_name | IP_address
where
host_name is the host name of the machine where catalog tables are stored. The driver must be able to find this name (with the correct address assignment) in the HOSTS file on the workstation or in a DNS server.
IP_address is the IP address of the machine where catalog tables are stored. The IP address can be specified in either IPv4 or IPv6 format, or a combination of the two. See “Using IP Addresses” for details about these formats.
Default
localhost
GUI Tab
General tab
Key Password
Attribute
KeyPassword (KP)
Description
The password used to access the individual keys in the keystore file when SSL is enabled (Encryption Method=1) and SSL client authentication is enabled on the database server. Keys stored in a keystore can be individually password-protected. To extract the key from the keystore, the driver must have the password of the key.
Valid Values
key_password
where key_password is the password of a key in the keystore.
Default
None
GUI Tab
Security tab
Keystore
Attribute
Keystore (KS)
Description
The name of the directory containing the keystore file to be used when SSL is enabled (Encryption Method=1) and SSL client authentication is enabled on the database server. The keystore file contains the certificates that the client sends to the server in response to the server’s certificate request. If you do not specify a directory, the current directory is used.
NOTE: The keystore and truststore files may be the same file.
Valid Values
keystore_directory
where keystore_directory is the location of the keystore file.
Default
None
GUI Tab
Security tab
Keystore Password
Attribute
KeystorePassword (KSP)
Description
The password used to access the keystore file when SSL is enabled (Encryption Method=1) and SSL client authentication is enabled on the database server. The keystore file contains the certificates that the client sends to the server in response to the server’s certificate request.
NOTE: The keystore and truststore files may be the same file; therefore, they may have the same password.
Valid Values
keystore_password
where keystore_password is the password of the keystore file.
Default
None
GUI Tab
Security tab
Load Balance Timeout
Attribute
LoadBalanceTimeout (LBT)
Description
The number of seconds to keep inactive connections open in a connection pool. An inactive connection is a database session that is not associated with an ODBC connection handle, that is, a connection in the pool that is not in use by an application.
NOTE: The Min Pool Size option may cause some connections to ignore this value.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | x
where x is a positive integer that specifies a number of seconds.
If set to 0, inactive connections are kept open.
If set to x, inactive connections are closed after the specified number of seconds passes.
Default
0
GUI Tab
Pooling tab
Load Balancing
Attribute
LoadBalancing (LB)
Description
Determines whether the driver uses client load balancing in its attempts to connect to the database servers (primary and alternate). You can specify one or multiple alternate servers by setting the Alternate Servers option.
Valid Values
0 | 1
If set to 1 (Enabled), the driver uses client load balancing and attempts to connect to the database servers (primary and alternate servers) in random order.
If set to 0 (Disabled), the driver does not use client load balancing and connects to each server based on their sequential order (primary server first, then, alternate servers in the order they are specified).
NOTE: This option has no effect unless alternate servers are defined for the Alternate Servers connection option.
Default
0 (Disabled)
GUI Tab
Failover tab
Location Name
Attribute
Location (LOC)
Description
Valid only for DB2 for z/OS and iSeries. The name of the DB2 location that you want to access.
On DB2 for z/OS, your system administrator can determine the name of your DB2 location using the DISPLAY DDF command.
On DB2 for iSeries, your system administrator can determine the name of your DB2 location using the WRKRDBDIRE command. The name of the database that is listed as *LOCAL" is the value to use.
This option is mutually exclusive with the Database Name option.
Valid Values
location_name
where location_name is the name of a valid DB2 location.
Default
None
GUI Tab
General tab
Login Timeout
Attribute
LoginTimeout (LT)
Description
The number of seconds the driver waits for a connection to be established before returning control to the application and generating a timeout error. To override the value that is set by this connection option for an individual connection, set a different value in the SQL_ATTR_LOGIN_TIMEOUT connection attribute using the SQLSetConnectAttr() function.
Valid Values
-1 | 0 | x
where x is a positive integer that specifies a number of seconds.
If set to -1, the connection request does not time out. The driver silently ignores the SQL_ATTR_LOGIN_TIMEOUT attribute.
If set to 0, the connection request does not time out, but the driver responds to the SQL_ATTR_LOGIN_TIMEOUT attribute.
If set to x, the connection request times out after the specified number of seconds unless the application overrides this setting with the SQL_ATTR_LOGIN_TIMEOUT attribute.
Default
15
GUI Tab
Advanced tab
Max Pool Size
Attribute
MaxPoolSize (MXPS)
Description
The maximum number of connections allowed within a single connection pool. When the maximum number of connections is reached, no additional connections can be created in the connection pool.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
An integer from 1 to 65535
For example, if set to 20, the maximum number of connections allowed in the pool is 20.
Default
100
GUI Tab
Pooling tab
Min Pool Size
Attribute
MinPoolSize (MNPS)
Description
The minimum number of connections that are opened and placed in a connection pool, in addition to the active connection, when the pool is created. The connection pool retains this number of connections, even when some connections exceed their Load Balance Timeout value.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | x
where x is an integer from 1 to 65535.
For example, if set to 5, the start-up number of connections in the pool is 5 in addition to the current existing connection.
If set to 0, no connections are opened in addition to the current existing connection.
Default
0
GUI Tab
Pooling tab
Package Collection
Attribute
PackageCollection (PC)
Description
The name of the DB2 collection or location where the driver creates bind packages and, when required, searches for them.
Valid Values
collection_name
where collection_name is a valid DB2 collection or location name.
Default
NULLID
GUI Tab
Modify Bindings tab
Package Name Prefix
Attribute
PackageNamePrefix (PNP)
Description
A two-character prefix used for package names when the driver executes dynamic SQL. The default package name uses the following syntax:
DDOiVRMx
where:
DD is the two-character prefix.
i is one of the following characters:
VRM is the Version Release Modification, for example, you can specify 520 to represent version 5.2.0.
x is a one-character suffix that specifies:
For example, the package name DDOC520A would represent a package using the Committed Read isolation level, at version 5.20, and using cursor queries/updates.
Valid Values
xx
where xx is a two-character prefix.
Default
DD
GUI Tab
Advanced tab
Package Owner
Attribute
PackageOwner (PO)
Description
The AuthID assigned to the package.
Valid Values
authid
where authid is a valid DB2 AuthID that has permissions to execute all the SQL in the package.
Default
None
GUI Tab
Modify Bindings tab
Password
Attribute
Password (PWD)
Description
The password that the application uses to connect to your database. The Password option cannot be specified through the driver Setup dialog box and should not be stored in a data source. It is specified through the Logon dialog box or a connection string.
Valid Values
pwd
where pwd is a valid password.
Default
None
GUI Tab
n/a
Program ID
Attribute
ProgramID (PID)
Description
The product and version information of the driver on the client to be stored in the database. This value sets the CLIENT_PRDID value in the database. For DB2 V9.1 and higher for Linux/UNIX/Windows, this value is located in the SYSIBMADM.APPLICATIONS table. This value is used by the DB2 Workload Manager.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
DDTVVRRM
where DDTVVRRM is a value that identifies the product and version of the driver on the client.
DDT identifies a DataDirect Connect driver.
VV identifies a 2-digit version number (with high-order 0 in the case of a 1-digit version).
RR identifies a 2-digit release number (with high-order 0 in the case of a 1-digit release).
M identifies a 1-character modification level (0-9 or A-Z).
Example
DDT06010
Default
None
GUI Tab
Client Monitoring tab
Query Timeout
Attribute
QueryTimeout (QT)
Description
The number of seconds for the default query timeout for all statements that are created by a connection. To override the value set by this connection option for an individual statement, set a different value in the SQL_ATTR_QUERY_TIMEOUT statement attribute on the SQLSetStmtAttr() function.
Query timeout is supported on DB2 for Linux/UNIX/Windows 8.1 and higher and on DB2 for z/OS 8.1 and higher
Valid Values
-1 | 0 | x
where x is a positive integer that specifies a number of seconds.
If set to -1, the query does not time out. The driver silently ignores the SQL_ATTR_QUERY_TIMEOUT attribute.
If set to 0, the query does not time out, but the driver responds to the SQL_ATTR_QUERY_TIMEOUT attribute.
If set to x, all queries time out after the specified number of seconds unless the application overrides this value by setting the SQL_ATTR_QUERY_TIMEOUT attribute.
Default
0
GUI Tab
Advanced tab
Record Delimiter
Attribute
BulkLoadRecordDelimiter (BLRD)
Description
Specifies the character that the driver will use to delimit the record entries in a bulk load data file.
Valid Values
x
where x is any printable character.
For simplicity, avoid using a value that can be in the data, including all alphanumeric characters, the dash(-), the colon(:), the period (.), the forward slash (/), the space character, the single quote (') and the double quote ("). You can use some of these characters as delimiters if all of the data in the file is contained within double quotes.
NOTE: The Bulk Load Record Delimiter character must be different from the Bulk Load Field Delimiter.
Default
None
GUI Tab
Bulk tab
Report Codepage Conversion Errors
Attribute
ReportCodepageConversionErrors (RCCE)
Description
Specifies how the driver handles code page conversion errors that occur when a character cannot be converted from one character set to another.
An error message or warning can occur if an ODBC call causes a conversion error, or if an error occurs during code page conversions to and from the database or to and from the application. The error or warning generated is Code page conversion error encountered. In the case of parameter data conversion errors, the driver adds the following sentence: Error in parameter x, where x is the parameter number. The standard rules for returning specific row and column errors for bulk operations apply.
Valid Values
0 | 1 | 2
If set to 0 (Ignore Errors), the driver substitutes 0x1A for each character that cannot be converted and does not return a warning or error.
If set to 1 (Return Error), the driver returns an error instead of substituting 0x1A for unconverted characters.
If set to 2 (Return Warning), the driver substitutes 0x1A for each character that cannot be converted and returns a warning.
Default
0 (Ignore Errors)
GUI Tab
Advanced tab
Tcp Port
Attribute
TcpPort (PORT)
Description
The port number that is assigned to the DB2 DRDA listener process on the server host machine.
On DB2 for iSeries only, execute NETSTAT from a command line to determine the correct port number. Select option 3 to display a list of active ports on the iSeries machine. Find the entry for DRDA, and press F14 to toggle and display the port number. If DRDA is not currently listening, the command CHGDDMTCPA AUTOSTART(*YES) PWDRQD(*YES) starts the listener and ensures that it is active at IPL.
Valid Values
IP_address | service_name
where:
IP_address is the port’s IP address.
service_name is the port’s service name. The driver must be able to find this name (with the correct port assignment) in the SERVICES file on the workstation.
Default
50000
GUI Tab
General tab
Truststore
Attribute
Truststore (TS)
Description
The directory that contains the truststore file and the truststore file name to be used when SSL is enabled (Encryption Method=1) and server authentication is used. The truststore file contains a list of the valid Certificate Authorities (CAs) that are trusted by the client machine for SSL server authentication. If you do not specify a directory, the current directory is used.
NOTE: The truststore and keystore files may be the same file.
Valid Values
truststore_directory\filename
where truststore_directory is the directory where the truststore file is located and filename is the file name of the truststore file.
Default
None
GUI Tab
Security tab
Truststore Password
Attribute
TruststorePassword (TSP)
Description
The password that is used to access the truststore file when SSL is enabled (Encryption Method=1) and server authentication is used. The truststore file contains a list of the Certificate Authorities (CAs) that the client trusts.
NOTE: The truststore and keystore files may be the same file; therefore, they may have the same password.
Valid Values
truststore_password
where truststore_password is a valid password for the truststore file.
Default
None
GUI Tab
Security tab
Use Current Schema for Catalog Functions
Attribute
UseCurrentSchema (UCS)
Description
Specifies whether results are restricted to the tables and views in the current schema if a catalog function call is made without specifying a schema or if the schema is specified as the wildcard character %. Restricting results to the tables and views in the current schema improves performance of catalog calls that do not specify a schema.
Valid Values
0 | 1
If set to 1 (Enabled), results of catalog function calls are restricted to the tables and views in the current schema.
If set to 0 (Disabled), results of catalog function calls are not restricted.
Default
0 (Disabled)
GUI Tab
Advanced tab
User Name
Attribute
LogonID (UID)
Description
The default user ID that is used to connect to your database. Your ODBC application may override this value or you may override it in the logon dialog box or connection string.
Valid Values
userid
where userid is a valid user ID with permissions to access the database.
Default
None
GUI Tab
Security tab
Validate Server Certificate
Attribute
ValidateServerCertificate (VSC)
Description
Determines whether the driver validates the certificate that is sent by the database server when SSL encryption is enabled (Encryption Method=1). When using SSL server authentication, any certificate sent by the server must be issued by a trusted Certificate Authority (CA). Allowing the driver to trust any certificate returned from the server even if the issuer is not a trusted CA is useful in test environments because it eliminates the need to specify truststore information on each client in the test environment.
Truststore information is specified using the Trust Store and Trust Store Password options.
Valid Values
0 | 1
If set to 1 (Enabled), the driver validates the certificate that is sent by the database server. Any certificate from the server must be issued by a trusted CA in the truststore file. If the Host Name In Certificate option is specified, the driver also validates the certificate using a host name. The Host Name In Certificate option provides additional security against man-in-the-middle (MITM) attacks by ensuring that the server the driver is connecting to is the server that was requested.
If set to 0 (Disabled), the driver does not validate the certificate that is sent by the database server. The driver ignores any truststore information specified by the Trust Store and Trust Store Password options.
Default
1 (Enabled)
GUI Tab
Security tab
With Hold Cursors
Attribute
WithHold (WH)
Description
Determines whether the cursor stays open on a commit.
Valid Values
0 | 1
If set to 1 (Enabled), cursor behavior is Preserve, which keeps cursors open after a commit or rollback (SQLGetInfo( ) returns SQL_CB_PRESERVE for SQL_COMMIT_CURSOR_BEHAVIOR).
If set to 0 (Disabled), cursor behavior is Delete, which closes all cursors open after a commit or rollback (SQLGetInfo( ) returns SQL_CB_DELETE).
Default
1 (Enabled)
GUI Tab
Advanced tab
XML Describe Type
Attribute
XMLDescribeType (XDT)
Description
The SQL data type that is returned by SQLGetTypeInfo for the XML data type.
See “Using the XML Data Type” for further information about the XML data type.
Valid Values
-4 | -10
If set to -4 (SQL_LONGVARBINARY), the driver uses the description SQL_LONGVARBINARY for columns that are defined as the XML data type.
If set to -10 (SQL_WLONGVARCHAR), the driver uses the description SQL_WLONGVARCHAR for columns that are defined as the XML data type.
Default
-10
GUI Tab
Advanced tab