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).

ParameterTypeRequiredDescriptionExample
addressJSON ArrayYesThe host and port of the SAP HANA instance. Accepts a single host-port pair.[{"host": "127.0.0.1", "port": 3306}]
databaseStringNoThe name of the database.mysql_database
usernameStringYesThe username used to connect to the database.xxxxx
passwordStringYesThe password for the specified username.xxxxx
propertiesJSON ObjectNoAdditional driver properties passed to the JDBC connection.{"useSSL": "false"}
envTypeStringYesThe 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"
}