OceanBase logo

OceanBase

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

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

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

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 & Certification
    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
    SQL
    KV
    • 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_RECOVER_TABLE_JOB_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.2.1.

    Purpose

    This view displays the results of a table-level restore task.

    Columns

    Column Type Nullable? Description
    TENANT_ID bigint(20) NO The ID of the tenant to which the task belongs.
    JOB_ID bigint(20) NO The ID of the task.
    INITIATOR_TENANT_ID bigint(20) NO The ID of the tenant to which the parent task belongs.
    INITIATOR_JOB_ID bigint(20) NO The ID of the parent task.
    START_TIMESTAMP timestamp(6) NO The current time of the tenant when the task started.
    FINISH_TIMESTAMP timestamp(6) NO The current time of the tenant when the task completed.
    STATUS varchar(64) NO The status of the task. Valid values:
    • COMPLETED: The task is completed.
    • FAILED: The task failed.
    AUX_TENANT_NAME varchar(64) NO The name of the auxiliary tenant.
    TARGET_TENANT_NAME varchar(64) NO The name of the target tenant.
    IMPORT_ALL tinyint(4) NO Indicates whether to import all tables under the tenant. The value is 1 only when the RECOVER TABLE *.* statement is specified. Otherwise, the value is 0.
    DB_LIST longtext YES The list of databases to be fully restored.
    TABLE_LIST longtext YES The list of tables to be restored.
    RESTORE_SCN bigint(20) unsigned NO The restore point specified by the user.
    RESTORE_SCN_DISPLAY datetime(6) NO The timestamp representation of the restore point specified by the user.
    RESTORE_OPTION varchar(4096) NO The restore_option parameter of the auxiliary tenant.
    BACKUP_DEST varchar(4096) NO The backup and archive path.
    BACKUP_SET_LIST longtext NO The data backup path.
    BACKUP_PIECE_LIST longtext NO The log archive path.
    BACKUP_PASSWD varchar(4096) YES The password of the backup set.
    EXTERNAL_KMS_INFO varchar(4096) YES If the source tenant has enabled key management, configure this parameter in the session.
    REMAP_DB_LIST longtext YES The list of renamed databases. The format is as follows: db1:new_db1, db2:newdb2.
    REMAP_TABLE_LIST longtext YES The list of renamed tables. The format is as follows: db1.t1:new_t1, db1.t2:db2.new_t2.
    REMAP_TABLEGROUP_LIST longtext YES The list of table groups to be remapped. The format is as follows: tg1:new_tg1, tg2:new_tg2.
    REMAP_TABLESPACE_LIST longtext YES The list of tablespaces to be remapped. The format is as follows: ts1:new_ts1, ts2:new_ts2.
    RESULT varchar(64) YES The result of the table-level restore task. Valid values:
    • SUCCESS
    • FAIL
    COMMENT longtext YES The comment.
    DESCRIPTION longtext YES The DESCRIPTION parameter specified in the restore command.

    Sample query

    After a table-level restore task is completed, the sys tenant queries the history of the task.

    obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_RECOVER_TABLE_JOB_HISTORY\G
    

    The query result is as follows:

    *************************** 1. row ***************************
                TENANT_ID: 1
                   JOB_ID: 1
      INITIATOR_TENANT_ID: 1
         INITIATOR_JOB_ID: 0
          START_TIMESTAMP: 2025-01-07 16:07:33.965561
         FINISH_TIMESTAMP: 2025-01-07 16:14:24.778403
                   STATUS: COMPLETED
          AUX_TENANT_NAME: AUX_RECOVER$1736237253959061
       TARGET_TENANT_NAME: mysql001
               IMPORT_ALL: 0
                  DB_LIST:
               TABLE_LIST: `infotest`.`t2`
              RESTORE_SCN: 1736237207609421000
      RESTORE_SCN_DISPLAY: 2025-01-07 16:06:47.609421
           RESTORE_OPTION: pool_list=rptest
              BACKUP_DEST: file:///home/admin/oceanbase/arglog,file:///home/admin/oceanbase/backupdata
          BACKUP_SET_LIST: file:///home/admin/oceanbase/backupdata/backup_set_4_full
        BACKUP_PIECE_LIST: file:///home/admin/oceanbase/arglog/piece_d1001r1p1
            BACKUP_PASSWD: NULL
        EXTERNAL_KMS_INFO: NULL
            REMAP_DB_LIST:
         REMAP_TABLE_LIST: `infotest`.`t2`:`infotest`.`newtb2`
    REMAP_TABLEGROUP_LIST:
    REMAP_TABLESPACE_LIST:
                   RESULT: SUCCESS
                  COMMENT: import succeed table count: 1, failed table count: 0
              DESCRIPTION: NULL
    *************************** 2. row ***************************
                TENANT_ID: 1002
                   JOB_ID: 5
      INITIATOR_TENANT_ID: 1
         INITIATOR_JOB_ID: 1
          START_TIMESTAMP: 2025-01-07 16:07:33.965561
         FINISH_TIMESTAMP: 2025-01-07 16:13:33.369573
                   STATUS: COMPLETED
          AUX_TENANT_NAME: AUX_RECOVER$1736237253959061
       TARGET_TENANT_NAME: mysql001
               IMPORT_ALL: 0
                  DB_LIST:
               TABLE_LIST: `infotest`.`t2`
              RESTORE_SCN: 1736237207609421000
      RESTORE_SCN_DISPLAY: 2025-01-07 16:06:47.609421
           RESTORE_OPTION: pool_list=rptest
              BACKUP_DEST: file:///home/admin/oceanbase/arglog,file:///home/admin/oceanbase/backupdata
          BACKUP_SET_LIST: file:///home/admin/oceanbase/backupdata/backup_set_4_full
        BACKUP_PIECE_LIST: file:///home/admin/oceanbase/arglog/piece_d1001r1p1
            BACKUP_PASSWD: NULL
        EXTERNAL_KMS_INFO: NULL
            REMAP_DB_LIST:
         REMAP_TABLE_LIST: `infotest`.`t2`:`infotest`.`newtb2`
    REMAP_TABLEGROUP_LIST:
    REMAP_TABLESPACE_LIST:
                   RESULT: SUCCESS
                  COMMENT: import succeed table count: 1, failed table count: 0
              DESCRIPTION: NULL
    2 rows in set
    

    References

    For more information about how to query the result of a table-level restore task, see View the table-level restore result.

    Previous topic

    oceanbase.CDB_OB_MAJOR_COMPACTION
    Last

    Next topic

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