IBM DB2

The IBM DB2 connector allows you to connect to IBM DB2 databases.

NOTE: Starting 16.2, this connector is deprecated. The Database connector or JDBC Database connector should be used. Existing workbooks will continue to operate for this 16.2 release, but connectivity will need to be migrated for subsequent releases.

Using IBM DB2

  1. Launch the Connect to Data dialog and then select DB2.

The DB2 Connection dialog displays.

  1. Provide the hostname, user ID, and password required to connect to the IBM DB2 database you wish to access. If the port you wish to use is different from the default port, change the default value to the correct one.

  1. Specify other connection options if desired, making sure to separate individual connection strings by a semi-colon.

The following table lists the connection string attributes supported by the DB2 Wire Protocol driver.

Attribute (Short Name)

Default

AccountingInfo (AI)

None

AddStringToCreateTable (ASCT)

None

AlternateID (AID)

None

AlternateServers (ASRV)

None

ApplicationName (AN)

None

ApplicationUsingThreads (AUT)

1 (Enabled)

AuthenticationMethod (AM)

0 (No Encryption)

BulkBinaryThreshold (BBT)

32

BulkCharacterThreshold (BCT)

-1

BulkLoadBatchSize (BLBS)

1024

BulkLoadFieldDelimiter (BLFD)

None

BulkLoadRecordDelimiter (BLRD)

None

CatalogSchema (CS)

None

CharsetFor65535 (CF6)

0

ClientHostName (CHN)

None

ClientUser (CU)

None

Collection (COL)

None

ConcurrentAccessResolution (CAR)

0 (Automatic)

ConnectionReset (CR)

0 (Disabled)

ConnectionRetryCount (CRC)

0

ConnectionRetryDelay (CRD)

3

CryptoLibName (CLN)

Empty string

CryptoProtocolVersion (CPV)

TLSv1.2, TLSv1.1, TLSv1, SSLv3

CurrentFunctionPath (CFP)

None

Database (DB)

None

DataSourceName (DSN)

None

DefaultIsolationLevel (DIL)

1 (READ_COMMITTED)

Description (n/a)

None

DynamicSections (DS)

1000

EnableBulkLoad (EBL)

0 (Disabled)

EncryptionMethod (EM)

0 (No Encryption)

FailoverGranularity (FG)

0 (Non-Atomic)

FailoverMode (FM)

0 (Connection)

FailoverPreconnect (FP)

0 (Disabled)

FetchTSWTZasTimestamp

0 (Disabled)

GrantAuthid (GA)

PUBLIC

GrantExecute (GE)

1 (Enabled)

GSSClient (GSSC)

native

HostNameInCertificate (HNIC)

None

IANAAppCodePage (IACP) UNIX ONLY

4 (ISO 8559-1 Latin-1)

IpAddress (IP)

localhost

KeepAlive (KA)

Disabled

KeyPassword (KP)

None

Keystore (KS)

None

KeystorePassword (KSP)

None

LoadBalanceTimeout (LBT)

0

LoadBalancing (LB)

0 (Disabled)

Location (LOC)

None

LoginTimeout (LT)

15

LogonID (UID)

None

MaxPoolSize (MXPS)

100

MinLongVarcharSize (MINLVS)

None

MinPoolSize (MNPS)

0

PackageCollection (PC)

NULLID

PackageNamePrefix (PNP)

DD

Password (PWD)

None

Pooling (POOL)

0 (disabled)

ProgramID (PID)

None

QueryTimeout (QT)

0

ReportCodepageConversionErrors (RCCE)

0 (Ignore Errors)

SSLLibName (SLN)

Empty string

TcpPort (PORT)

50000

Truststore (TS)

None

TruststorePassword (TSP)

None

UseCurrentSchema (UCS)

0 (disabled)

ValidateServerCertificate (VSC)

1 (enabled)

VarcharThreshold (VT)

None

WithHold (WH)

1 (enabled)

XMLDescribeType (XDT)

-10

 

  1. Enter or select the name of the database to which you want to connect.

  2. The easiest way to select a table and/or view to load is by choosing from a set of predefined tables and views. To do so, ensure that the Tables & Views radio button is selected. If you wish to manually construct a SQL query to pull and load data, ensure that the Query button is selected. Once either a table or view or a query has been selected, the OK button at the bottom of the dialog is enabled.

  3. Click Load Tables to load a list of predefined tables or views. This list can be filtered by entering an appropriate string in the Search Tables search box.

You can also add a duplicate column.

  1. Select a table to display the available columns in the Search Columns list. Once a table has been selected, the Query text box is updated to reveal the results of a SELECT * FROM TABLE query. Any other selection made updates the Query text box accordingly.

  2. Select the columns to add to your data table by checking their corresponding Output Column box.

  3. If you wish to parameterize a specific column, check the Parameterize checkbox and, in the dropdowns that display, select the desired value.

  4. If the data returned is to be aggregated, check the Aggregate checkbox. The following aggregation methods are possible:

The time zone of input parameters and output data is, by default, unchanged. Changing the time zone is supported by using the Timezone list box based on the assumption that data are stored in UTC time and outputs are presented in the selected time zone.

  1. Check the box for Enable on-demand queries if you would like to enable this function.

  2. Click OK to confirm the selection and retrieve the record set into Panopticon Designer (Desktop).

The flat record set corresponding to the executed SQL is returned from the source database and displayed in Data Prep with the database name as the title and all fields listed displayed in Data Source Preview.

  1. If you wish to make changes to your fields, you may do so now and then click OK when you are finished. If you do not wish to make any changes to your data, simply select the OK button.