Routing queries to a read only replica
Requires Customer/Partner License
This tutorial demonstrates how read only queries can be routed to a replica. The option to add a replica to an SAP HANA Cloud instance requires a productive (non free tier) instance.
You will learn
- How to add a synchronous replica
- How to direct a SQL query to a replica using a hint
- How to connect to a replica so that read only queries can be executed without using hints
- Additional settings that affect routing
Prerequisites
- An SAP HANA Cloud QRC 1 2026 (or newer) instance that supports adding a replica
- A 2.28 (QRC 1 2026) or newer version of the SAP HANA Client
A replica is used to provide an additional copy of your instance that is kept up to date through replication. This instance can then be used to quickly replace the source instance with the replica using the takeover action performed in SAP HANA Cloud Central. By sending read only workloads to the replica, this can offload workloads from the source node and provide better utilization.
The following are some additional sources of information on this topic:









