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.6.0

    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.6.0
    iconOceanBase Database
    SQL - V 4.6.0
    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

    DBA_OB_LS_REPLICA_TASK_HISTORY

    Last Updated:2026-05-07 11:26:24  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 DBA_OB_LS_REPLICA_TASK_HISTORY view displays the execution history of disaster recovery tasks for all tenants.

    Columns

    Column
    Type
    Nullable
    Description
    LS_ID NUMBER(38) NO The ID of the log stream.
    TASK_TYPE VARCHAR2(64) NO The type of the task. Valid values:
    • MIGRATE REPLICA: migrate a replica
    • ADD REPLICA: add a replica
    • TYPE TRANSFORM: convert the type of a replica
    • 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 VARCHAR2(200) NO The ID of the task.
    TASK_STATUS VARCHAR2(2048) YES The status of the task. Valid values:
    • INPROGRESS: the task is being scheduled and executed
    • COMPLETED: the task is completed
    • CANCELED: the task is canceled
    PRIORITY CHAR(5) NO The priority of the task. Valid values:
    • LOW: low priority
    • HIGH: high priority
    TARGET_REPLICA_SVR_IP VARCHAR2(46) YES The IP address of the server where the target replica resides.
    TARGET_REPLICA_SVR_PORT NUMBER(38) YES The port of the server where the target replica resides.
    TARGET_PAXOS_REPLICA_NUMBER NUMBER(38) YES The number of required Paxos member replicas in the log stream.
    TARGET_REPLICA_TYPE VARCHAR2(16) YES The type of the target replica.
    SOURCE_REPLICA_SVR_IP VARCHAR2(46) YES The IP address of the server where the source replica resides.
    SOURCE_REPLICA_SVR_PORT NUMBER(38) YES The port of the server where the source replica resides.
    SOURCE_PAXOS_REPLICA_NUMBER NUMBER(38) YES The number of required Paxos member replicas in the log stream.
    SOURCE_REPLICA_TYPE VARCHAR2(16) YES The type of the source replica.
    DATA_SOURCE_SVR_IP VARCHAR2(46) YES The IP address of the data source.
    DATA_SOURCE_SVR_PORT NUMBER(38) YES The port of the data source.
    IS_MANUAL CHAR(6) NO The source of the disaster recovery task. Valid values:
    • TRUE: the disaster recovery task is triggered by a manual operation.
    • FALSE: the disaster recovery task is automatically generated by the RS layer.
    TASK_EXEC_SVR_IP VARCHAR2(46) YES The IP address of the server where the task is executed.
    TASK_EXEC_SVR_PORT NUMBER(38) YES The port of the server where the task is executed.
    CREATE_TIME TIMESTAMP(6) NO The time when the task was generated.
    START_TIME TIMESTAMP(6) NO The time when the task was scheduled.
    MODIFY_TIME TIMESTAMP(6) NO The time when the status of the task was updated.
    FINISH_TIME TIMESTAMP(6) NO The time when the task was completed.
    EXECUTE_RESULT VARCHAR2(2048) YES The execution result of the task.
    COMMENT VARCHAR2(2048) YES The remarks on the reason for generating the task.
    CONFIG_VERSION VARCHAR2(128) YES The config_version of the clog layer when the disaster recovery task was executed.

    Note

    This column is available starting with V4.4.0.

    Sample query

    Query the execution history of disaster recovery tasks and display the first record.

    obclient [SYS]> SELECT * FROM SYS.DBA_OB_LS_REPLICA_TASK_HISTORY WHERE ROWNUM <= 1\G
    

    The query result is as follows:

    *************************** 1. row ***************************
                          LS_ID: 1
                      TASK_TYPE: ADD REPLICA
                        TASK_ID: YB42AC1E87D7-000639016D9D7F1A-0-0
                    TASK_STATUS: COMPLETED
                       PRIORITY: HIGH
          TARGET_REPLICA_SVR_IP: 172.xx.xxx.243
        TARGET_REPLICA_SVR_PORT: 2882
    TARGET_PAXOS_REPLICA_NUMBER: 3
            TARGET_REPLICA_TYPE: FULL
          SOURCE_REPLICA_SVR_IP: 172.xx.xxx.254
        SOURCE_REPLICA_SVR_PORT: 2882
    SOURCE_PAXOS_REPLICA_NUMBER: 2
            SOURCE_REPLICA_TYPE: FULL
             DATA_SOURCE_SVR_IP: 0.0.0.0
           DATA_SOURCE_SVR_PORT: 0
                      IS_MANUAL: FALSE
               TASK_EXEC_SVR_IP: 172.xx.xxx.243
             TASK_EXEC_SVR_PORT: 2882
                    CREATE_TIME: 10-JUL-25 10.58.24.570903 AM
                     START_TIME: 10-JUL-25 10.58.07.509494 AM
                    MODIFY_TIME: 10-JUL-25 10.58.24.570903 AM
                    FINISH_TIME: 10-JUL-25 10.58.24.000000 AM
                 EXECUTE_RESULT: ret:0, OB_SUCCESS; elapsed:17054428;
                        COMMENT: add paxos replica according to locality
                 CONFIG_VERSION:
    *************************** 2. row ***************************
                          LS_ID: 1
                      TASK_TYPE: MIGRATE REPLICA
                        TASK_ID: YB42AC1E87D7-000638FE21BE24C2-0-0
                    TASK_STATUS: COMPLETED
                       PRIORITY: HIGH
          TARGET_REPLICA_SVR_IP: 172.xx.xxx.231
        TARGET_REPLICA_SVR_PORT: 2882
    TARGET_PAXOS_REPLICA_NUMBER: 3
            TARGET_REPLICA_TYPE: FULL
          SOURCE_REPLICA_SVR_IP: 172.xx.xxx.243
        SOURCE_REPLICA_SVR_PORT: 2882
    SOURCE_PAXOS_REPLICA_NUMBER: 3
            SOURCE_REPLICA_TYPE: FULL
             DATA_SOURCE_SVR_IP: 0.0.0.0
           DATA_SOURCE_SVR_PORT: 0
                      IS_MANUAL: FALSE
               TASK_EXEC_SVR_IP: 172.xx.xxx.231
             TASK_EXEC_SVR_PORT: 2882
                    CREATE_TIME: 04-JUL-25 11.21.08.294737 AM
                     START_TIME: 04-JUL-25 11.20.50.723082 AM
                    MODIFY_TIME: 04-JUL-25 11.21.08.294737 AM
                    FINISH_TIME: 04-JUL-25 11.21.08.000000 AM
                 EXECUTE_RESULT: ret:0, OB_SUCCESS; elapsed:17570758;
                        COMMENT: shrink unit task
                 CONFIG_VERSION:
    2 rows in set
    

    References

    • View the execution history of disaster recovery tasks for all tenants: CDB_OB_LS_REPLICA_TASK_HISTORY

    • View the running disaster recovery tasks for all tenants: CDB_OB_LS_REPLICA_TASKS

    • View the running disaster recovery tasks for the current tenant: DBA_OB_LS_REPLICA_TASKS

    Previous topic

    DBA_OB_LS_REPLICA_TASKS
    Last

    Next topic

    DBA_OB_MAJOR_COMPACTION
    Next
    What is on this page
    Purpose
    Columns
    Sample query
    References