Skip to content

SAP HANA Prerequisites

Client information and database access needed before configuring the SAP HANA adapter.

3 min read Updated SS

This section lists the prerequisites for HANA monitoring.

Client Information Required#

The following is the complete list of information that must be collected from the client before the adapter can be configured.

SAP HANA Database Access#

Information Needed Example Notes
HANA hostname or IP saprsvs4hana Must be reachable from the adapter host
HANA JDBC port 30015 Tenant DB default index server port
HANA database/tenant name HD4 Database name in JDBC URL
HANA DB username HEALTECH User created in HANA for monitoring
HANA DB password <password> Will be Base64 encoded for config
HANA version/revision >= 1.00.102.01 Required for M_CONNECTION_STATISTICS

HEAL Platform Registration#

Information Needed Example Notes
Heal agent UUID 299a5907-29f5-4f3b-ad77-6a242eb30d9e UUID from the Heal platform
Heal instance name/UUID 84f9ed60-6219-4e28-9840-e5286b25e18b UUID of the Heal instance
Logscan instance name sapsrvs4hana Unique name for this HANA adapter instance

Adapter Chain Configuration#

Information Needed Example Notes
Chain ID Saphana ExtractorM Must match chain_id in sql_file_path_mapper
MySQL host for adapter DB localhost Where the dataadapter_saphana DB will run
MySQL port 3306 Default MySQL port
MySQL username appsone Adapter DB user
MySQL password password Adapter DB password
SQL files directory path /opt/heal/ext-system-adapter/sql_file/ Where HANA SQL query files are placed
Timezone of the HANA server PST Used to format timestamps in queries

Adapter Chain Repository#

This ensures secure TLS communication for the JDBC MySQL connection.

UPDATE adapter_chain_repository SET connection_url = 'jdbc:mysql://<ip>:<port>/dataadapter_saphana?verifyServerCertificate=false&useSSL=true&requireSSL=true&enabledTLSProtocols=TLSv1.2,TLSv1.3&useServerPrepStmts=true&cacheServerConfiguration=true' where name in ('SapHanaKpiMaster', 'NameValueRepository', 'LogAnalyzerKPIMaster');
UPDATE adapter_chain_repository SET connection_url = 'jdbc:mysql://<ip>:<port>/appsone?verifyServerCertificate=false&useSSL=true&requireSSL=true&enabledTLSProtocols=TLSv1.2,TLSv1.3&useServerPrepStmts=true&cacheServerConfiguration=true' where name in ('AppsoneRepository');
UPDATE adapter_chain_repository SET user_name = 'dbadmin' where name in ('SapHanaKpiMaster', 'NameValueRepository', 'LogAnalyzerKPIMaster', 'AppsoneRepository');
UPDATE adapter_chain_repository SET password = '<password>' where name in ('SapHanaKpiMaster', 'NameValueRepository', 'LogAnalyzerKPIMaster', 'AppsoneRepository');

SAP HANA User Permissions Required#

The HANA user (e.g., `HEALTECH`) must have SELECT access granted on the following system views:

GRANT SELECT ON SYS.M_LOAD_HISTORY_SERVICE TO HEALTECH;
GRANT SELECT ON SYS.M_CONNECTION_STATISTICS TO HEALTECH;
GRANT SELECT ON SYS.M_SERVICES TO HEALTECH;
GRANT SELECT ON SYS.M_BUFFER_CACHE_STATISTICS TO HEALTECH;
GRANT SELECT ON SYS.M_TABLE_PERSISTENCE_STATISTICS TO HEALTECH;
GRANT SELECT ON SYS.M_CS_TABLES TO HEALTECH;
GRANT SELECT ON SYS.M_RS_TABLES TO HEALTECH;
GRANT SELECT ON SYS.M_RS_INDEXES TO HEALTECH;

Note: Above are all standard SAP HANA system monitoring views under the SYS schema.

Granting SELECT on individual views is safer than granting MONITORING or DATA ADMIN roles.

Platform Prerequisites#

Java & Build#

Requirement Value
Java Java 8+
Maven Required to build the project
SAP HANA JDBC driver libs/ngdbc-2.13.9.jar (included in repo)

MySQL Adapter Database#

A MySQL database (dataadapter_saphana) must be set up and populated before running the adapter.

DROP DATABASE IF EXISTS dataadapter_saphana;
CREATE DATABASE dataadapter_saphana;
CREATE USER IF NOT EXISTS 'appsone'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
ALTER USER 'appsone'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT ALL PRIVILEGES ON dataadapter_saphana.* TO 'appsone'@'%';

SAP HANA Version Requirement#

The HANA_Connections_Statistics.sql file (used during initialization to discover service ports) queries M_CONNECTION_STATISTICS, which requires SAP HANA revision 1.00.102.01 or higher.

Note: Confirm this with the client’s BASIS team before deployment.

Network Access#

From To Port Purpose
Adapter host HANA host JDBC port (e.g., 30015) JDBC connection for KPI extraction
Adapter host MySQL host 3306 Reading adapter configuration

Required Database Tables#

The SQL files to create and populate all tables are in Sap-Hana-Adapter/src/main/sql/SapHana/.

  • adapter.sql: creates the adapter framework tables (run this first).
  • adapter_hana_create.sql: Creates the three HANA-specific tables.
  • adapter_hana_insert.sql: Seeds all KPI and query-file configuration.
  • adapter_insert.sql: inserts the general adapter framework configuration data into the tables.