SAP HANA Connection
Configure connections to SAP HANA databases for source and target data operations.
Overview
The Synthesized Platform connects to SAP HANA using JDBC. Both source (input) and target (output) connections are configured as data sources in the platform.
Connection Configuration
JDBC URL Format
jdbc:sap://hostname:port/?databaseName=SYSTEMDB
Components:
| Component | Description |
|---|---|
|
SAP HANA server hostname or IP address |
|
Instance port (typically 3`<instance>`15, e.g., 39015 for instance 90) |
|
Database name (SYSTEMDB or tenant database name) |
Adding a Data Source
Via the UI
-
Navigate to Data Sources in the main menu
-
Click Add Data Source
-
Select SAP HANA as the database type
-
Enter connection details:
-
Name: Descriptive name (e.g., "SAP Production")
-
JDBC URL: Connection string
-
Username: Database user
-
Password: User password
-
-
Click Test Connection to verify
-
Click Save
Required Permissions
Source Database (Read)
-- Create user for TDK
CREATE USER TDK_USER PASSWORD "secure_password";
-- Grant schema read access
GRANT SELECT ON SCHEMA SAP_SCHEMA TO TDK_USER;
-- Grant system view access for metadata
GRANT SELECT ON SYS.SCHEMAS TO TDK_USER;
GRANT SELECT ON SYS.TABLES TO TDK_USER;
GRANT SELECT ON SYS.TABLE_COLUMNS TO TDK_USER;
GRANT SELECT ON SYS.CONSTRAINTS TO TDK_USER;
GRANT SELECT ON SYS.INDEXES TO TDK_USER;
GRANT SELECT ON SYS.REFERENTIAL_CONSTRAINTS TO TDK_USER;
Target Database (Write)
-- Create user for TDK
CREATE USER TDK_USER PASSWORD "secure_password";
-- Grant full access to target schema
GRANT ALL PRIVILEGES ON SCHEMA TARGET_SCHEMA TO TDK_USER;
-- Or create schema if needed
GRANT CREATE SCHEMA TO TDK_USER;
-- For schema creation mode
GRANT CREATE ANY ON SCHEMA TARGET_SCHEMA TO TDK_USER;
Connection Properties
Security Properties
| Property | Description | Default |
|---|---|---|
|
Enable SSL/TLS encryption |
false |
|
Validate server certificate |
true |
|
Expected hostname in certificate |
hostname |
|
Path to trust store file |
- |
|
Trust store password |
- |
Same-System Configuration
SSL/TLS Configuration
Trust Store Setup
-
Export the SAP HANA server certificate
-
Import into a Java trust store:
keytool -import -alias saphana \
-file saphana_cert.pem \
-keystore truststore.jks \
-storepass changeit
Troubleshooting
Connection Refused
Symptoms: Unable to connect, connection refused error
Solutions:
-
Verify hostname and port are correct
-
Check network connectivity:
telnet hostname port -
Verify SAP HANA is running:
sapcontrol -function GetProcessList -
Check firewall rules allow the connection
Authentication Failed
Symptoms: Invalid credentials error
Solutions:
-
Verify username and password
-
Check user is not locked:
SELECT * FROM SYS.USERS WHERE USER_NAME = 'TDK_USER' -
Reset password if needed:
ALTER USER TDK_USER PASSWORD "new_password"
Permission Denied
Symptoms: Insufficient privileges error
Solutions:
-
Review required permissions above
-
Grant missing permissions
-
Verify schema names are correct
-- Check user permissions
SELECT * FROM SYS.EFFECTIVE_PRIVILEGES
WHERE USER_NAME = 'TDK_USER';
Best Practices
Use Dedicated Users
Create separate database users for TDK:
-
Different users for different environments
-
Minimal permissions required
-
Easy to audit and revoke