DB2
Updated at:
Property definition
-
Data source type:
db2 -
Supported configuration mode (
ConnectionPropertiesMode): Connection string mode (UrlMode)
Connection string mode
| Parameter | Type | Example | Required | Description |
|---|---|---|---|---|
address |
JSON Array | [{"host": "127.0.0.1", "port": 3306}] |
Yes | The host and port of the Db2 instance, specified as a JSON array. Only one host-port pair is supported. |
database |
String | mysql_database |
Yes | The name of the database. |
jdbcDriver |
String | db2_1 |
Yes | The Db2 JDBC driver model. Valid values: db2_1, as400_1, db2_2. |
username |
String | xxxxx |
Yes | The username. |
password |
String | xxxxx |
Yes | The password. |
properties |
JSON Object | {"currentSchema": "abc"} |
No | Additional JDBC driver properties. |
envType |
String | Dev |
Yes | The data source environment. Valid values: Dev (development environment), Prod (production environment). |
Configuration examples
Connection string mode
{
"address": [
{
"host": "127.0.0.1",
"port": 5432
}
],
"database": "db",
"properties": {
"currentSchema": "abc"
},
"jdbcDriver":"db2_1",
"username": "xxxxx",
"password": "xxxxx",
"envType": "Dev"
}
Is this page helpful?