Skip to main content

SAP HANA JDBC Catalog

Run catalog SQL with a warehouse SQL user that can manage catalogs and access the source. Ensure network access from the warehouse to metadata, storage, and source endpoints. For connector deployment, host files, JVM settings, or service configuration changes, contact VeloDB Cloud support.

The JDBC Catalog supports connecting to the SAP HANA database through the standard JDBC interface. This document describes how to configure the SAP HANA database connection.

For an overview of the JDBC Catalog, please refer to: JDBC Catalog Overview

Usage notes​

To connect to the SAP HANA database, you need

  • SAP HANA 2.0 or higher.

  • The JDBC driver for the SAP HANA database, which you can download from the Maven Repository. It is recommended to use version ngdbc 2.4.51 or above.

  • Network access from the warehouse to the source server, whose default port is 30015.

Connect to SAP HANA​

CREATE CATALOG saphana_catalog PROPERTIES (
'type' = 'jdbc',
'user' = 'username',
'password' = 'pwd',
'jdbc_url' = 'jdbc:sap://Hostname:Port/?optionalparameters',
'driver_url' = 'ngdbc-2.4.51.jar',
'driver_class' = 'com.sap.db.jdbc.Driver'
)

For more information on the JDBC URL format and parameters supported by the SAP HANA JDBC driver, please refer to SAP HANA.

Hierarchical mapping​

When mapping SAP HANA, the Database in VeloDB Cloud corresponds to a Schema under the specified DataBase in SAP HANA (the "DATABASE" in the jdbc_url parameter). The Table under the Database in VeloDB Cloud corresponds to the Tables under the Schema in SAP HANA. The mapping relationship is as follows:

VeloDB CloudSAP HANA
CatalogDatabase
DatabaseSchema
TableTable

Column type mapping​

SAP HANA TypeVeloDB Cloud TypeComment
booleanboolean
tinyinttinyint
smallintsmallint
integerint
bigintbigint
smalldecimal(P, S)decimal(P, S) or double or stringIf precision is not specified, the double type is used. If the precision exceeds the maximum precision supported by VeloDB Cloud, the string type is used.
decimal(P, S)decimal(P, S) or double or stringSame as above.
realfloat
doubledouble
datedate
timestring
timestamp(S)datetime(S)
seconddatedatetime(S)
varcharstring
nvarcharstring
alphanumstring
shorttextstring
char(N)char(N)
nchar(N)char(N)
otherUNSUPPORTED

Ask AI