OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V3.2.4Enterprise Edition

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V3.2.4
    iconOceanBase Database
    SQL - V 3.2.4Enterprise Edition
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    Typical scenarios

    Last Updated:2023-10-24 09:23:03  Updated
    Share
    What is on this page
    Dual IDCs
    Three IDCs across two regions

    folded

    Share

    This topic describes the typical scenarios of primary/standby cluster configuration where IDC- and region-level disaster recovery are implemented.

    Dual IDCs

    As each IDC serves as a separate disaster recovery unit, users may require disaster recovery at the IDC level. If only two IDCs are available, one IDC must be able to take over the services when the other becomes unavailable.

    If an application is deployed as a single cluster across the two IDCs, one of them hosts the majority of replicas. When the IDC that hosts the majority of replicas goes down, the primary cluster no longer provides services. Therefore, the single-cluster deployment mode is unable to achieve disaster recovery in the dual-IDC scenario.

    Instead, a deployment mode that features one primary cluster and one standby cluster allows for disaster recovery in this situation. A primary cluster is deployed in the primary IDC and adopts a multi-replica architecture to achieve server-level disaster recovery. A standby cluster is deployed in the standby IDC. You can deploy this cluster with a single replica to reduce the cost or multiple replicas to achieve server-level disaster recovery in the standby IDC.

    The primary cluster is not affected when the standby IDC becomes unavailable. When the primary IDC fails, the standby cluster becomes the new primary cluster and takes over the services through a failover process. This meets the requirement for IDC-level disaster recovery.

    Three IDCs across two regions

    In this mode, three IDCs are deployed in two regions, with two deployed in one region and one in the other. In addition to IDC-level disaster recovery, users may also expect geo-disaster recovery capability. This means that when a failure occurs in one region, the other region can take over the services.

    OceanBase Database provides a solution that is derived from the "three IDCs across two regions" mode. This solution involves five replicas in three IDCs across two regions. For example, you may have deployed your cluster in three IDCs, with two in Shanghai and one in Hangzhou. Each of these three IDCs hosts one replica. When one of the IDCs becomes unavailable, the availability of the entire cluster is not affected because the majority of replicas survive and are sufficient to ensure lossless disaster recovery, which indicates a recovery time objective (RTO) of 0. However, if a regional failure occurs in Shanghai, the majority of replicas are unavailable, so is the cluster. Therefore, the single-cluster deployment is unable to achieve disaster recovery in the "three IDCs across two regions" mode.

    To achieve geo-disaster recovery in this mode, create a standby cluster for your primary cluster. In this example, you can deploy the standby cluster of one or more replicas in the Hangzhou IDC. The primary cluster is not affected if a regional failure occurs in Hangzhou. If a regional failure occurs in Shanghai, the standby cluster becomes the new primary cluster and takes over the services through a failover process. This meets the requirement for region-level disaster recovery.

    Previous topic

    Overview
    Last

    Next topic

    Protection modes
    Next
    What is on this page
    Dual IDCs
    Three IDCs across two regions