Skip to main content

Setup Connection

This is where you provide your SAP HANA database credentials so Anansi can connect to it.


1. Enter Your SAP HANA Connection Details

Select HanaDB as the database type and fill in the following parameters:

ParameterRequiredDescription
DB TypeYesSelect HanaDB from the dropdown.
HostYesThe hostname or IP address of your SAP HANA server (e.g., hana.mycompany.com).
PortYesThe port number your HANA instance listens on (1–65535). See port conventions below.
UserYesYour SAP HANA database username (e.g., SYSTEM).
PasswordYesThe password for the database user.
Schema NameYesThe schema you want to import metadata from (e.g., SALES_DATA).

HANA Connection Setup

Example Configuration
  • Host: hana.mycompany.com
  • Port: 30015
  • User: SYSTEM
  • Password: ••••••••
  • Schema Name: SALES_DATA
SAP HANA Port Conventions

SAP HANA uses port numbers based on your instance number (NN):

Deployment TypePort PatternExample (Instance 00)
Tenant Database (MDC)3NN1530015
System Database3NN1330013
Single Container3001530015

If you're unsure of your instance number, check with your SAP Basis or HANA administrator.


2. (Optional) Use an SSH Tunnel

If your SAP HANA server is inside a private network or behind a firewall, toggle on "Use SSH Tunnel" to create an encrypted bridge:

ParameterRequiredDescription
Local PortYesPort on your local machine the tunnel listens on (1–65535).
Remote HostYesInternal address of the HANA server as seen from the SSH host.
Remote PortYesThe HANA port on the internal network (1–65535).
SSH HostYesThe jump server address you connect through (e.g., ssh.mycompany.com).

This is particularly common in enterprise SAP environments where HANA instances are deployed in isolated VPCs or on-premises data centres.


3. Click "Next" — Connection Is Tested

Click "Next". Anansi will validate all fields, verify that port numbers are within the valid range, and test the live connection to your SAP HANA database.

  • Success: A green "Connection Established" toast notification appears, and you advance to Step 2 of the wizard.
  • Failure: A red error toast appears detailing what went wrong (e.g., incorrect credentials, unreachable host, invalid port).

Troubleshooting Connection Issues

ProblemLikely CauseFix
"Connection refused"Wrong port or HANA instance not runningVerify the instance number and corresponding port (3NN15 for tenant DB). Confirm the HANA service is started.
"Authentication failed"Incorrect username or passwordDouble-check your HANA user credentials. Ensure the user account is not locked.
"Host not found"Incorrect hostname or DNS issueVerify the hostname resolves correctly. Try using the IP address instead.
Timeout errorsNetwork or firewall blocking accessEnsure your network allows traffic on the HANA port. Consider using an SSH tunnel.