IBM Db2 connection reference
Learn about the fields used to create an IBM Db2 connection with ThoughtSpot DataFlow.
Here is a list of the fields for an IBM Db2 connection in ThoughtSpot DataFlow. You need specific information to establish a seamless and secure connection.
Connection properties
- Connection name
-
Name your connection. Mandatory field.
- Example:
-
IBMDb2Connection
- Connection type
-
Choose the IBM Db2 connection type. Mandatory field.
- Example:
-
IBM Db2
- Platform
-
An environment in which a data point is executed. Specify LUW, iSeries, or Mainframe. Mandatory field.
- Example:
-
platform
- Host
-
Specify the hostname or the IP address of the Db2 system. Mandatory field.
- Example:
-
example.plaform.com
- Port
-
Specify the port associated to the Db2 system. Mandatory field.
- Example:
-
1234
- User
-
Specify the user to connect to IBM Db2. This user must have data access privileges. Mandatory field.
- Example:
-
userdi
- Password
-
Specify the password for the User.
Mandatory field.
- Example:
-
pswrd234%!
- Database
-
Collection of information that is organized so that it can be easily accessed, managed and updated. Mandatory field.
- Example:
-
database
- Database alias
-
Specify database alias for easy identification. Mandatory field.
- Example:
-
database_alias
- Other notes:
-
These are under Advanced configuration.
- Version
-
Specify the Db2 version being connected to. Optional field.
- Example:
-
10.x
- Other notes:
-
These are under Advanced configuration.
- Code page
-
A standardized code in which characters are represented for computer storage and transmission by the numbers 0 through 127. Select either ASCII or EBCDIC. Optional field.
- Example:
-
ASCII
- JDBC options
-
Specify the options associated with the JDBC URL.
Optional field.
- Example:
-
jdbc:sqlserver://[serverName[\instanceName][:portNumber]]
- Other notes:
-
Advanced configuration.
Sync properties
- Data extraction mode
-
Specify the extraction type. Optional field.
- Example:
-
Db2 EXPORT
- Valid Values:
-
JDBC,Db2 EXPORT
- Default:
-
JDBC
- Column delimiter
-
Specify the column delimiter character. Mandatory field.
- Example:
-
1
- Valid Values:
-
Any printable ASCII character or decimal value for ASCII character
- Default:
-
The delimiter specified in sync
- Null value
-
Specifies the string literal that should indicate the null value in the extracted data. During the data load the column value matching this string will be loaded as null in the target. Optional field.
- Example:
-
NULL
- Valid Values:
-
Any string literal
- Default:
-
NULL
- Other notes:
-
Specific only to Db2 EXPORT Utility
- Enclosing character
-
Specify if the text columns in the source data needs to be enclosed in quotes. Optional field.
- Example:
-
DOUBLE
- Valid Values:
-
Single, Double
- Default:
-
DOUBLE
- Other notes:
-
This is required if the text data has newline character or delimiter character.
- Escape character
-
Specify the escape character if using a text qualifier in the source data. Optional field.
- Example:
-
\"
- Valid Values:
-
Any ASCII character
- Default:
-
\"
- Fetch size
-
Specify the number of rows to be fetched at a time and processed in memory. If the value specified is zero then, all rows are extracted at once. Optional field.
- Example:
-
1000
- Valid Values:
-
Any numeric value
- Default:
-
1000
- Other notes:
-
Appears when Extraction Type is "JDBC".
- Max ignored rows
-
Abort the transaction after encountering 'n' ignored rows. Optional field.
- Example:
-
0
- Valid Values:
-
Any numeric value
- Default:
-
0
- tsload options
-
Specifies the parameters passed with the
tsload
command, in addition to the commands already included by the application. The format for these parameters is:<param_1_name> = <param_1_value>
- Example:
-
date_time_format = %Y-%m-%d date_format = %Y-%m-%d;time_format = %H:%M:%S
- Valid Values:
-
null_value = NULL max_ignored_rows = 0
- Default:
-
max_ignored_rows = 0
Related information