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

    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.4.2
    iconOceanBase Database
    SQL - V 4.4.2
    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_TASKS

    Last Updated:2026-04-02 06:23:58  Updated
    share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    share

    Note

    This view is available starting with V4.0.0.

    Purpose

    The DBA_OB_LS_REPLICA_TASKS view displays the disaster recovery tasks at the replica level that are running for the current tenant.

    Columns

    Column
    Type
    Nullable
    Description
    LS_ID NUMBER(38) NO The ID of the log stream.
    TASK_TYPE VARCHAR2(64) NO The task type. Valid values:
    • MIGRATE REPLICA: migrate a replica
    • ADD REPLICA: add a replica
    • REMOVE PAXOS REPLICA: remove a Paxos replica
    • MODIFY PAXOS REPLICA NUMBER: modify the number of Paxos replicas
    TASK_ID VARCHAR2(200) NO The task ID.
    TASK_STATUS VARCHAR2(2048) YES The task status. Valid values:
    • INPROGRESS: the task is being scheduled.
    • WAITING: the task is waiting.
    PRIORITY CHAR(5) NO The task priority. Valid values:
    • LOW: a low-priority task. Only migration tasks can be low-priority.
    • HIGH: a high-priority task.
    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 number of the server where the target replica resides.
    TARGET_PAXOS_REPLICA_NUMBER NUMBER(38) YES The number of Paxos 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.
    For tasks such as removing a replica or modifying the number of Paxos replicas, this field is invalid and is displayed as NULL.
    SOURCE_REPLICA_SVR_PORT NUMBER(38) YES The port number of the server where the source replica resides.
    For tasks such as removing a replica or modifying the number of Paxos replicas, this field is invalid and is displayed as 0.
    SOURCE_PAXOS_REPLICA_NUMBER NUMBER(38) YES The number of Paxos replicas in the log stream.
    SOURCE_REPLICA_TYPE VARCHAR2(16) YES The type of the source replica.
    For tasks such as removing a replica or modifying the number of Paxos replicas, this field is invalid and is displayed as NULL.
    DATA_SOURCE_SVR_IP VARCHAR2(46) YES The IP address of the data source.

    Note

    • This field is available starting with V4.3.3 in V4.3.x.
    • This field is available starting with V4.2.3 in V4.2.x.
    DATA_SOURCE_SVR_PORT NUMBER(38) YES The port number of the data source.

    Note

    • This field is available starting with V4.3.3 in V4.3.x.
    • This field is available starting with V4.2.3 in V4.2.x.
    IS_MANUAL CHAR(6) NO The source of the disaster recovery task. Valid values:
    • TRUE: a disaster recovery task triggered by a manual O&M command.
    • FALSE: the default value. A disaster recovery task automatically generated by the RS layer.

    Note

    • This field is available starting with V4.3.3 in V4.3.x.
    • This field is available starting with V4.2.3 in V4.2.x.
    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 number 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 task status was updated.
    COMMENT VARCHAR2(2048) YES The remarks about the reason for generating the task.
    CONFIG_VERSION VARCHAR2(128) YES The config_version information of the clog layer when the disaster recovery task was executed.

    Note

    This field is available starting with V4.4.0.

    Sample query

    Query the disaster recovery tasks at the replica level that are running for the current tenant.

    obclient [SYS]> SELECT * FROM SYS.DBA_OB_LS_REPLICA_TASKS\G
    

    The query result is as follows:

    *************************** 1. row ***************************
                          LS_ID: 1
                      TASK_TYPE: ADD REPLICA
                        TASK_ID: YB42AC1E87D7-000639016D9D7F1A-0-0
                    TASK_STATUS: INPROGRESS
                       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.204
        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: 2025-07-10 10:58:08
                     START_TIME: 2025-07-10 10:58:08
                    MODIFY_TIME: 2025-07-10 10:58:08
                        COMMENT: add paxos replica according to locality
                 CONFIG_VERSION:
    1 row in set
    

    References

    • View all running Replica-level disaster recovery tasks for all tenants: CDB_OB_LS_REPLICA_TASKS

    • View the history of completed Replica-level disaster recovery tasks for all tenants: CDB_OB_LS_REPLICA_TASK_HISTORY

    • View the history of completed Replica-level disaster recovery tasks for the current tenant: DBA_OB_LS_REPLICA_TASK_HISTORY

    Previous topic

    DBA_OB_SERVICES
    Last

    Next topic

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