Skip to content

Latest commit

 

History

History
154 lines (97 loc) · 6.83 KB

File metadata and controls

154 lines (97 loc) · 6.83 KB

How To

This document contains detailed instructions on how to perform specific tasks in the context of containerization of SAP® systems.

Contents

Table of Contents

Connecting to the SAP® S/4HANA® Database using SAP HANA Studio®

To set up to connectivity to your SAP system running on a Red Head OpenShift Container Platform you can use either

  • tools/ocp-port-forwarding

or

  • tools/ocp-haproxy-forwarding --add

While tools/ocp-port-forwarding remains active as foreground process, tools/ocp-haproxy-forwarding updates the HAProxy configuration on the helper node.

Both tools report the connection details for SAP HANA Studio access:

Use the following parameters to create an SAP HANA Studio connection:
----------------------------------------
   Host Name           <hostname>
   Instance Number     <inst-no>
   System ID           <hdb-sid>

To connect to the tenant DB with SAP HANA Studio it is required
to set a new entry in the SAP HANA DB parameter global.ini file
In section public_hostname_resolution:
    - Ensure Key: use_default_route has value  ip (default)
    - Add    Key: map_<hostname>    with value <IP address>
Use scope System for the parameter change
----------------------------------------

Connecting to the System Database with SAP HANA Studio

When the SAP HANA database is up and running in the container, and port forwarding is established by tools/ocp-port-forwarding or tools/ocp-haproxy-forwarding, then the system database can be registered in SAP HANA Studio.

Launch SAP HANA Studio, and select Add System:

hana_studio_1

Enter the SAP HANA connection parameters (Host Name, effective Instance Number) as listed by tools/ocp-port-forwarding

Select checkboxes Multiple Containers and System database, then enter a Description of your choice:

hana_studio_2

choose Next.

Register the SAP system database using an User Name having the desired privileges. Create an appropriate technical user with privileges according to the role (backup, monitoring, managing roles and users, … ) in the database before.

In the example, the SYSTEM user is used.

hana_studio_3

Afterwards, press Finish to start the registration.

If registration is successful and communication to the pod is possible, the SYSTEMDB will appear in the menu with a “green” state:

hana_studio_4

Adapting the SAP HANA Configuration

Hostname and IP address used within the pod are not visible outside the OpenShift Container Platform. The entry point for SAP HANA Studio is different to the pod, so communication settings need to be adjusted in the SAP HANA configuration.

In SAP HANA Studio, open the Administration Tab for the System DB, Select Tab Configuration, and search for parameter public_hostname_resolution in global.ini:

hana_studio_5

There should be only one entry with name use_default_route and default value ip.

Add a second entry within the public_hostname_resolution section. Right click, and select Add parameter

hana_studio_6

Select the System wide Scope:

hana_studio_7

For key enter map_<hostname> and for value the IP address of the system hosting the SSH tunnels as reported from tools/ocp-port-forwarding

hana_studio_8

Afterwards, press Finish.

Once done, the tenant DB can be registered in SAP HANA Studio.

Connecting to the Tenant Database with SAP HANA Studio

Open SAP HANA Studio, and select Add System:

hana_studio_1

Enter the SAP HANA connection parameters as listed from tools/ocp-port-forwarding (Host Name, effective Instance Number).

Select Mode Multiple Containers and checkmark Tenant database, enter the SID of the tenant, and a Description of your choice:

hana_studio_9

choose Next.

⚠️ In case a port different than 3<NN>15 is used as SQL/MDX port for the tenant database, e.g. port 3<NN>41, then you need to enter the Host Name as <hostname>:<port> for the HANA Studio configuration.

Register with a User Name with sufficient privileges. You can use the ABAP connect user at first, or create an appropriate technical user with limited privileges according to the purpose (backup, monitoring, managing roles and users, … )

hana_studio_10

Afterwards, press Finish

As result, both the system database and the tenant database should get visible in the menu in status green:

hana_studio_11