Skip to content

SAP HANA

DBMS Type SAPHANA
Driver SAP HANA ODBC driver (HDBODBC, part of the SAP HANA client). Install it on the Stelo VM.
Connection string No template. See below.
Apply methods Batch, Merge, Sequence

Docker

The SQDR container doesn't include the SAP HANA ODBC driver: ask Stelo Support.

Prepare the database. The user needs a schema where it can create tables. In SAP HANA, a user owns a schema with its own name; to use another schema, create it owned by the user:

CREATE USER sqdruser PASSWORD "MyPassword1" NO FORCE_FIRST_PASSWORD_CHANGE;
CREATE SCHEMA myschema OWNED BY sqdruser;

Replace sqdruser, the password and myschema. As owner, the user can create, alter and drop tables and indexes in the schema and write to them. Merge also creates a local temporary table for each table it merges (see The merge table).

Create the destination. There's no template for this driver: leave DBMS Type at Other on the Name step, so the ODBC Driver list shows HDBODBC; the Replicator Service sets the type to SAPHANA when it connects. Enter the connection with SAP's keywords, for example SERVERNODE=myhost:30015;DATABASENAME=mydb: SERVERNODE is the database's host and SQL port, and DATABASENAME names a tenant database. For SAP HANA Cloud and other TLS connections, add ENCRYPT=TRUE. See SAP's documentation of the ODBC connection properties.