Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Sushil01
Product and Topic Expert
Product and Topic Expert

Introduction


Welcome to our blog where we will dive into the world of Connectivity between SAP HANA On-Premise and SAP HANA Cloud and Database . If you're navigating the journey of transitioning from an on-premise database to a cloud-based solution, this tutorial is tailored for you. We'll explore how to connect an SAP HANA on-premise database to an SAP HANA Cloud database using SAP BTP Connectivity, and this connectivity is crucial if you want to set up data replication.

The method we will discuss involves setting up the cloud connector on your on-premise database. The cloud connector is a robust tool that allows you to establish a connection with a remote source, without the necessity of installing and configuring the Data Provisioning Agent, making it an optimal choice for those seeking to quickly replicate data to an SAP HANA Cloud database.

Throughout this tutorial, we will guide you step by step on how to:

  1. Enable the cloud connector for your SAP HANA Cloud database.

  2. Install and configure the cloud connector.


By the end of this blog post, you'll be equipped with the knowledge and skills to set up and manage a seamless connection between your SAP HANA databases on-premise and in the cloud. Let's get started on this exciting journey!

Cloud Connector


The Cloud Connector is a pivotal component designed for on-premise systems, acting as a bridging link between SAP Business Technology Platform (BTP) applications & services and on-premise systems. It provides a streamlined path to connect and expose specific portions of an on-premise landscape without the need to reveal the entire on-premise infrastructure. This ensures a layer of security and confidentiality while maintaining operational efficiency and connectivity.

The Cloud Connector comes with a high degree of control, enabling you to manage your connections in a more refined manner. It is equipped with a number of useful features specifically designed for business-critical scenarios. One of its key features includes the ability to recover broken connections automatically. This is crucial in maintaining business continuity, reducing downtime, and ensuring that your operations are running smoothly. It also provides a high-availability setup, ensuring that your system stays operational and accessible, thereby minimizing disruptions to your business operations.

There are several advantages to using the Cloud Connector. For starters, its installation and configuration are straightforward and hassle-free. One of the key benefits it offers is that it eliminates the need to configure an on-premise firewall to allow access to an on-premise system. This not only simplifies the setup process but also reduces the potential security risks associated with opening firewall ports.

By simplifying the process of connecting your on-premise databases with SAP HANA Cloud and other SAP BTP applications, the Cloud Connector effectively bridges the gap between your on-premise and cloud-based operations. With its advanced features and easy-to-use interface, it provides a robust and secure solution for managing and optimizing your database connections.

In summary, the Cloud Connector is not just a mere link between your on-premise systems and SAP BTP, but a comprehensive tool that offers you control, flexibility, and security, all while simplifying your operations.

Enable the cloud connector for SAP HANA Cloud, SAP HANA database


You can enable the cloud connector either during provisioning or editing an existing instance. Click on “Provisioning” or “Edit instance” below the title of this step. Here we'll discuss "edit an existing instance"

First, you need to enable SAP BTP Connectivity in the SAP HANA Cloud, SAP HANA database you want to connect to an on-premise database.



  1. Open SAP BTP cockpit and enter your (trial) account.

  2. Enter your Global Account, Subaccount, and then space.

  3. Navigate to the tile of the instance you want to connect to an SAP HANA on-premise database.

  4. Click on Actions in the bottom right corner of the tile.

  5. Select Open in SAP HANA Cloud Central to monitor landscape, which will then open in a new tab.

  6. There, click on the three dots in the Actions column on the right side of the screen

  7. Select Manage Configuration.

  8. Click Edit.

  9. In the wizard that opens, scroll down to the section Connections.

  10. For this instance, the cloud connector is now enabled, and it is ready to be used.

  11. And, click Save button


Now that you've activated the cloud connector, it's time to proceed with its installation and configuration.

Install the cloud connector


You can access the cloud connector for download at this location. Ensure you review the system prerequisites for varying operating systems and further setup suggestions as provided in the technical guide available here.

After the cloud connector has been downloaded and installed successfully, use a web browser to manage it.

1. Navigate to https://hostname:8443 on your web browser.

2. Take note, 8443 is the default port designated during the installation process. If the cloud connector was installed on a machine other than your local one, you will need to input its hostname in place of the default port.

3. At the login prompt that appears, use the following format to input your details:
Administrator / manage (case sensitive) for <User Name> / <Password>


Cloud connector login page


Remember that you will be required to modify the password at your initial login.


Configure SAP BTP Subaccount


Within the administration interface of the Cloud Connector, you'll note at the screen's top that functionality will not commence until a subaccount is specified. This step is crucial as it aligns the Cloud Connector with the respective subaccount where your desired SAP HANA Cloud or SAP HANA database instance is situated.

  1. Click the Add Subaccount Button and it will open the form for you.

  2. Click the value help icon for Region and select the region of the subaccount.

  3. In the field Subaccount, you need to enter the subaccount ID. To acquire it, access the SAP BTP cockpit and locate your subaccount.

  4. Copy the subaccount ID and enter it in the field Subaccount in the cloud connector.

  5. Provide an optional display name.

  6. Sign into the SAP BTP Cockpit using the subaccount's credentials. Note: If your subaccount is not based on Cloud Foundry, the steps will differ slightly. In this case, you will need to provide the technical Subaccount name, as well as the subaccount username and password.

  7. If desired, you can input a location ID. This will be necessary if you plan to establish a remote source.

  8. To finalize your changes, click on the Save button located in the top right corner of your screen.


Expose your on-premise SAP HANA system


Click on Cloud To On-Premise to expose your backend systems(or services). Then click the + icon and provide the following details



  1. Back-end Type: SAP HANA

  2. Protocol: TCP SSL(or TCP depending on your SAP HANA installation)

  3. Internal Host: endpoint without port

  4. Internal Port: Your SAP HANA sql-port

  5. Virtual Host: choose any valid virtual host name

  6. Virtual Port: choose any valid virtual port

  7. Description: Provide a description, it is optional

  8. Check Internal Host

  9. Click Finish


For additional information on setting up the cloud connector, kindly consult the technical manual.

To expand your knowledge about the cloud connector, consider visiting this community blog.

1 Comment