SAP HANA
Updated at:
Connect SAP HANA as a data source in DataWorks Data Integration. The connector uses connection string mode and supports a single host and port pair per data source.
Prerequisites
Before you begin, make sure you have:
The hostname and port of your SAP HANA instance
A database username and password with access to the target data
(Optional) The name of the database to connect to
Network connectivity from DataWorks to your SAP HANA host
Parameters
The data source type is saphana. The only supported configuration mode is connection string mode (ConnectionPropertiesMode: UrlMode).
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
address | JSON Array | Yes | The host and port of the SAP HANA instance. Accepts a single host-port pair. | [{"host": "127.0.0.1", "port": 3306}] |
database | String | No | The name of the database. | mysql_database |
username | String | Yes | The username used to connect to the database. | xxxxx |
password | String | Yes | The password for the specified username. | xxxxx |
properties | JSON Object | No | Additional driver properties passed to the JDBC connection. | {"useSSL": "false"} |
envType | String | Yes | The environment type for this data source. Valid values: Dev (development), Prod (production). | Dev |
Configuration example
The following example shows a complete connection string mode configuration:
{
"address": [
{
"host": "127.0.0.1",
"port": 5432
}
],
"database": "db",
"properties": {
"connectTimeout": "2000"
},
"username": "xxxxx",
"password": "xxxxx",
"envType": "Dev"
}Is this page helpful?