SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Remote Table Replication

Use remote table replication after you have established a connection from an SAP HANA on-premise database to SAP HANA Cloud, SAP HANA database with the cloud connector.

Overview

You will learn

  • How to establish a remote source
  • How to create a virtual table
  • How to add a replica table and add a remote subscription
Christopher Kollhed C Christopher Kollhed August 21, 2026
Created on August 15, 2021
Contributors

More from Christopher Kollhed

See all 15 tutorials by Christopher Kollhed →

Prerequisites

Prerequisites

Steps

Intro

Once you established a connection between your SAP HANA Cloud, SAP HANA database and SAP HANA on-premise database using the cloud connector following the instructions from the previous tutorial, you can establish a remote source and use remote table replication.

Remote table replication allows you to benefit from transient log-based replication, optimized performance with the SDA ODBC connection and near real-time replication and is also the preferred way to replicate data between SAP HANA Cloud, SAP HANA databases. Learn in this tutorial how to use it.


Step 1 Establish a remote source to replicate data

Once you have established the connection using the cloud connector, you can create a remote source in your SAP HANA Cloud, SAP HANA database instance pointing to the on-premise database.

  1. Open the SAP HANA Database Explorer connected to your SAP HANA Cloud, SAP HANA database instance.
  2. Open a SQL console.
  3. With the following statement, you can create a remote source from SAP HANA Cloud, SAP HANA database to SAP HANA on-premise to then replicate data from the on-premise system to the cloud. See instructions below the code to find out what to insert for the <placeholders>
SQL
CREATE REMOTE SOURCE <NAME> ADAPTER "hanaodbc"
CONFIGURATION 'ServerNode=<virtual_host_name>:<portnumber>;use_haas_socks_proxy=true;scc_location_id=<locationid>'
WITH CREDENTIAL TYPE 'PASSWORD' USING 'user=<username>;password=<password>';
-	In that statement, you need to add the host name and port number of the virtual host that you have manually created in the cloud connector. The reason for this is to not reveal the actual hostname and port which might be a breach in security.
- For on-premise connections, the socks proxy needs to be specified, which is already included in this statement.
  - Next, in that statement, add the cloud connector location id, which you specified in the beginning.

> If you want to use remote table replication between two SAP HANA Cloud, SAP HANA database instances, you need to slightly modify this statement. For more technical details on creating the remote source, read more in the [technical documentation](https://help.sap.com/viewer/477aa413a36c4a95878460696fcc8896/LATEST/en-US/20d299d2f5224e8590982e8ad97362a2.html).
  1. Once all your information is included, run the statement. This will create a remote source from SAP HANA Cloud, SAP HANA database to your on-premise system.

  2. The remote source will be established, and you can create virtual tables and use remote table replication just like when connecting different SAP HANA Cloud, SAP HANA database instances. Please note that you are only able to use remote table replication if you are using SAP HANA on-premise SPS05 or higher. Otherwise, only SDA virtual access is available.

Step 2 Create a virtual table
+
Step 3 Create a table replica
+
Step 4 Add a remote source subscription to the replica
+
Step 5 Refresh and alter the remote subscription
+
Step 6 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. Establish a remote source to replicate data 2. Create a virtual table 3. Create a table replica 4. Add a remote source subscription to the replica 5. Refresh and alter the remote subscription 6. Test yourself
Next