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 - V4.3.5

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive 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. V4.3.5
    iconOceanBase Database
    SQL - V 4.3.5
    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

    oceanbase.CDB_OB_LS_REPLICA_TASK_HISTORY

    Last Updated:2026-04-15 06:09:08  Updated
    Share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    Share

    Note

    • This view is available starting with V4.3.3 in V4.3.x.
    • This view is available starting with V4.2.3 in V4.2.x.

    Purpose

    The CDB_OB_LS_REPLICA_TASK_HISTORY view displays the execution history of disaster recovery tasks.

    Columns

    Column
    Type
    Nullable?
    Description
    TENANT_ID |bigint(20) NO The tenant ID.
    LS_ID bigint(20) NO The log stream ID.
    TASK_TYPE varchar(64) NO The task type. Valid values:
    • MIGRATE REPLICA: migrate a replica
    • ADD REPLICA: add a replica
    • TYPE TRANSFORM: convert the replica type
    • REMOVE PAXOS REPLICA: remove a Paxos member replica
    • REMOVE NON PAXOS REPLICA: remove a non-Paxos member replica
    • MODIFY PAXOS REPLICA NUMBER: modify the number of required Paxos member replicas
    TASK_ID varchar(200) NO The task ID.
    TASK_STATUS varchar(2048) YES The task status. Valid values:
    • INPROGRESS: the task is being scheduled
    • COMPLETED: the task is completed
    • CANCELED: the task is canceled
    PRIORITY varchar(5) NO The task priority. Valid values:
    • LOW: low priority
    • HIGH: high priority
    TARGET_REPLICA_SVR_IP varchar(46) YES The IP address of the server where the target replica resides.
    TARGET_REPLICA_SVR_PORT bigint(20) YES The port number of the server where the target replica resides.
    TARGET_PAXOS_REPLICA_NUMBER bigint(20) YES The number of required Paxos member replicas in the log stream.
    TARGET_REPLICA_TYPE varchar(16) YES The type of the target replica.
    SOURCE_REPLICA_SVR_IP varchar(46) YES The IP address of the server where the source replica resides.
    SOURCE_REPLICA_SVR_PORT bigint(20) YES The port number of the server where the source replica resides.
    SOURCE_PAXOS_REPLICA_NUMBER bigint(20) YES The number of required Paxos member replicas in the log stream.
    SOURCE_REPLICA_TYPE varchar(16) YES The type of the source replica.
    DATA_SOURCE_SVR_IP varchar(46) YES The IP address of the data source.
    DATA_SOURCE_SVR_PORT bigint(20) YES The port number of the data source.
    IS_MANUAL varchar(6) NO The source of the disaster recovery task. Valid values:
    • TRUE: the task is triggered by a manual operation command
    • FALSE: the task is automatically generated by the RS layer
    TASK_EXEC_SVR_IP varchar(46) YES The IP address of the server where the task is executed.
    TASK_EXEC_SVR_PORT bigint(20) YES The port number of the server where the task is executed.
    CREATE_TIME datetime NO The time when the task is generated.
    START_TIME datetime NO The time when the task is scheduled.
    MODIFY_TIME datetime NO The time when the task status is updated.
    FINISH_TIME datetime NO The time when the task is completed.
    EXECUTE_RESULT varchar(2048) YES The execution result of the task.
    COMMENT varchar(2048) YES The remarks about the reason for generating the task.

    Sample query

    Query the execution history of disaster recovery tasks.

    obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_LS_REPLICA_TASK_HISTORY  limit 2;
    

    The query result is as follows:

    +-----------+-------+----------------------+------------------------------------+-------------+----------+-----------------------+-------------------------+-----------------------------+---------------------+-----------------------+-------------------------+-----------------------------+---------------------+--------------------+----------------------+-----------+------------------+--------------------+---------------------+---------------------+---------------------+---------------------+------------------------------------+----------------------------------+
    | TENANT_ID | LS_ID | TASK_TYPE            | TASK_ID                            | TASK_STATUS | PRIORITY | TARGET_REPLICA_SVR_IP | TARGET_REPLICA_SVR_PORT | TARGET_PAXOS_REPLICA_NUMBER | TARGET_REPLICA_TYPE | SOURCE_REPLICA_SVR_IP | SOURCE_REPLICA_SVR_PORT | SOURCE_PAXOS_REPLICA_NUMBER | SOURCE_REPLICA_TYPE | DATA_SOURCE_SVR_IP | DATA_SOURCE_SVR_PORT | IS_MANUAL | TASK_EXEC_SVR_IP | TASK_EXEC_SVR_PORT | CREATE_TIME         | START_TIME          | MODIFY_TIME         | FINISH_TIME         | EXECUTE_RESULT                     | COMMENT                          |
    +-----------+-------+----------------------+------------------------------------+-------------+----------+-----------------------+-------------------------+-----------------------------+---------------------+-----------------------+-------------------------+-----------------------------+---------------------+--------------------+----------------------+-----------+------------------+--------------------+---------------------+---------------------+---------------------+---------------------+------------------------------------+----------------------------------+
    |         1 |     1 | REMOVE PAXOS REPLICA | Y13CE64586BD4-000614A074B90E52-0-0 | COMPLETED   | HIGH     |      xx.xx.xx.xx      |                    5072 |                           5 | FULL                | NULL                  |                       0 |                           5 | NULL                | NULL               |                 NULL | FALSE     |      xx.xx.xx.xx      |               5070 | 2024-03-27 16:57:55 | 2024-03-27 16:57:55 | 2024-03-27 16:57:55 | 2024-03-27 16:57:55 | ret:0, OB_SUCCESS; elapsed:87128;  | remove permanent offline replica |
    |      1002 |  1002 | ADD REPLICA          | Y13CE64586BD4-000614A080F90C5D-0-0 | COMPLETED   | HIGH     |      xx.xx.xx.xx      |                    5078 |                           5 | FULL                |      xx.xx.xx.xx      |                    5070 |                           4 | FULL                | 0.0.0.0            |                    0 | TRUE      |      xx.xx.xx.xx      |               5078 | 2024-03-27 16:55:47 | 2024-03-27 16:55:46 | 2024-03-27 16:55:47 | 2024-03-27 16:55:46 | ret:0, OB_SUCCESS; elapsed:697425; | add replica by manual            |
    +-----------+-------+----------------------+------------------------------------+-------------+----------+-----------------------+-------------------------+-----------------------------+---------------------+-----------------------+-------------------------+-----------------------------+---------------------+--------------------+----------------------+-----------+------------------+--------------------+---------------------+---------------------+---------------------+---------------------+------------------------------------+----------------------------------+
    2 rows in set (0.05 sec)
    

    References

    DBA_OB_LS_REPLICA_TASK_HISTORY

    Previous topic

    oceanbase.CDB_OB_LS_REPLICA_TASKS
    Last

    Next topic

    oceanbase.CDB_OB_MAJOR_COMPACTION
    Next
    What is on this page
    Purpose
    Columns
    Sample query
    References