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
    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_RESTORE_PROGRESS

    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

    This view displays the active restore tasks for the current tenant.

    Columns

    Column
    Type
    Nullable
    Description
    JOB_ID NUMBER(38) NO The job ID of the restore task.
    RESTORE_TENANT_NAME VARCHAR2(4096) NO The name of the tenant to be restored.
    RESTORE_TENANT_ID NUMBER(38) NO The ID of the tenant to be restored.
    BACKUP_TENANT_NAME VARCHAR2(4096) NO The name of the source tenant for the backup.
    BACKUP_TENANT_ID VARCHAR2(4096) NO The ID of the source tenant for the backup.
    BACKUP_CLUSTER_NAME VARCHAR2(4096) NO The name of the source cluster for the backup.
    BACKUP_DEST VARCHAR2(4096) NO The backup set path, which is the data backup path and log archive path specified by the user.
    RESTORE_OPTION VARCHAR2(4096) NO The restore option specified by the user when initiating the restore task.
    RESTORE_TYPE VARCHAR2(4096) NO The type of restore.
    • FULL: indicates a full restore.
    • QUICK: indicates a quick restore.

    Note

    This column is available starting with V4.3.5 BP1.

    RESTORE_SCN NUMBER(38) NO The restore point specified by the user.
    RESTORE_SCN_DISPLAY TIMESTAMP(9) NO The timestamp of the restore point specified by the user.
    STATUS VARCHAR2(4096) NO The status of the restore task. The status of the restore task for the system tenant and the tenant to be restored may be inconsistent.
    System tenant:
    • CREATE_TENANT: indicates that the system tenant is creating the tenant to be restored.
    • WAIT_TENANT_RESTORE_FINISH: indicates that the system tenant is waiting for the restore task of the tenant to be restored to complete.
    • RESTORE_SUCCESS: indicates that the tenant is restored successfully.
    • RESTORE_FAIL: indicates that the tenant is restored failed.

    Tenant to be restored:
    • RESTORE_PRE: indicates that the system is preparing for the restore. In this stage, the encryption information is set if encryption is enabled.
    • RESTORE_CREATE_INIT_LS: indicates that the system is creating a log stream.
    • RESTORE_WAIT_LS: indicates that the system is waiting for the log stream to be restored.
    • POST_CHECK: indicates that the system is checking the tenant role and converting the tenant to a standby database.
    • UPGRADE: indicates that the system is upgrading the tenant. If the tenant is restored from a different version, the system will execute the upgrade process.
    • RESTORE_SUCCESS: indicates that the tenant is restored successfully.
    • RESTORE_FAIL: indicates that the tenant is restored failed.
    START_TIMESTAMP VARCHAR2(256) NO The timestamp when the restore task starts.
    BACKUP_SET_LIST VARCHAR2(4096) NO The list of data backup set paths required for the restore task. The backup sets are separated by commas (,). For example: file:///data/nfs/backup/data/backup_set_1_full,file:///data/nfs/backup/data/backup_set_2_inc
    BACKUP_PIECE_LIST VARCHAR2(4096) NO The list of log archive piece paths required for the restore task. The log archive pieces are separated by commas (,). For example: file:///data/nfs/backup/archive/2_1_2,file:///data/nfs/backup/archive/2_1_3
    RECOVER_SCN NUMBER(38) NO The restore point of the log. For the system tenant, the value of this column is NULL

    Note

    • For V4.2.1, this column is available starting with V4.2.1 BP7.
    • For other V4.2.x versions, this column is available starting with V4.2.3.
    RECOVER_SCN_DISPLAY TIMESTAMP(9) NO The timestamp of the restore point of the log. For the system tenant, the value of this column is NULL

    Note

    • For V4.2.1, this column is available starting with V4.2.1 BP7.
    • For other V4.2.x versions, this column is available starting with V4.2.3.
    RECOVER_PROGRESS NUMBER NO The progress of log recovery. The result is rounded to two decimal places. For example, 87.65 indicates that the progress is 87.65%. For the system tenant, the value of this column is NULL

    Note

    • For V4.2.1, this column is available starting with V4.2.1 BP7.
    • For other V4.2.x versions, this column is available starting with V4.2.3.
    TABLET_COUNT NUMBER(38) NO The total number of tablets to be restored. For the system tenant, the value of this column is NULL

    Note

    • For V4.2.1, this column is available starting with V4.2.1 BP7.
    • For other V4.2.x versions, this column is available starting with V4.2.3.
    FINISH_TABLET_COUNT NUMBER(38) NO The total number of tablets that have been restored. For the system tenant, the value of this column is NULL

    Note

    • For V4.2.1, this column is available starting with V4.2.1 BP7.
    • For other V4.2.x versions, this column is available starting with V4.2.3.
    RESTORE_PROGRESS NUMBER NO The progress of data recovery. The result is rounded to two decimal places. For example, 87.65 indicates that the progress is 87.65%. For the system tenant, the value of this column is NULL

    Note

    • For V4.2.1, this column is available starting with V4.2.1 BP7.
    • For other V4.2.x versions, this column is available starting with V4.2.3.
    TOTAL_BYTES NUMBER(38) NO The total number of bytes to be restored.
    TOTAL_BYTES_DISPLAY VARCHAR2(42) NO The total number of bytes to be restored, displayed in the storage capacity unit.
    FINISH_BYTES NUMBER(38) NO The number of bytes that are completed in the restore.
    FINISH_BYTES_DISPLAY VARCHAR2(42) NO The total number of bytes that are restored, displayed in storage units.
    DESCRIPTION VARCHAR2(4096) NO The DESCRIPTION information specified in the restore command.

    Sample query

    Query the progress of physical restore tasks in the current user's tenant.

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

    The query result is as follows:

    *************************** 1. row ***************************
                  JOB_ID: 3
     RESTORE_TENANT_NAME: AUX_RECOVER$1736315512813184
       RESTORE_TENANT_ID: 1012
      BACKUP_TENANT_NAME: oracle001
        BACKUP_TENANT_ID: 1004
     BACKUP_CLUSTER_NAME: test425
             BACKUP_DEST: file:///home/admin/oceanbase/arglogorc,file:///home/admin/oceanbase/backupdataorc
          RESTORE_OPTION: pool_list=rptest
            RESTORE_TYPE: QUICK
             RESTORE_SCN: 1736315345952321000
     RESTORE_SCN_DISPLAY: 2025-01-08 13:49:05.952321
                  STATUS: RESTORING
         START_TIMESTAMP: 2025-01-08 13:51:52.836523
         BACKUP_SET_LIST: file:///home/admin/oceanbase/backupdataorc/backup_set_5_full
       BACKUP_PIECE_LIST: file:///home/admin/oceanbase/arglogorc/piece_d1001r1p1,file:///home/admin/oceanbase/arglogorc/piece_d1001r1p2
             RECOVER_SCN: 1736315345952321000
     RECOVER_SCN_DISPLAY: 2025-01-08 13:49:05.952321
        RECOVER_PROGRESS: 100.00
            TABLET_COUNT: 1258
     FINISH_TABLET_COUNT: 1257
        RESTORE_PROGRESS: 99.92
             TOTAL_BYTES: 56561873
     TOTAL_BYTES_DISPLAY: 53.94MB
            FINISH_BYTES: 0
    FINISH_BYTES_DISPLAY: 0.00MB
             DESCRIPTION:
    1 row in set
    

    References

    • View the execution progress of all physical restore tasks in all tenants: CDB_OB_RESTORE_PROGRESS

    • View all completed tenant-level restore tasks in all tenants: CDB_OB_RESTORE_HISTORY

    • For more information about how to view the progress of a physical restore task, see View the progress of a physical restore task.

    Previous topic

    DBA_OB_RESTORE_HISTORY
    Last

    Next topic

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