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.2.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.2.5
    iconOceanBase Database
    SQL - V 4.2.5
    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_IMPORT_TABLE_JOB_HISTORY

    Last Updated:2026-04-27 03:14:13  Updated
    share
    What is on this page
    Purpose
    Columns
    Sample query

    folded

    share

    Note

    This view is available starting with V4.2.1.

    Purpose

    This view displays the history of import tasks at the tenant level.

    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 starts.
    FINISH_TIMESTAMP timestamp(6) NO The current time of the tenant when the task finishes.
    SRC_TENANT_NAME varchar(64) NO The name of the source tenant.
    SRC_TENANT_ID bigint(20) NO The ID of the source tenant.
    STATUS varchar(64) NO The status of the import task. Valid value: IMPORT_FINISH.
    IMPORT_ALL tinyint(4) NO Indicates whether to import all tables under the tenant. The value is 1 only when the RECOVER TABLE *.* clause is specified. In other scenarios, the value is 0.
    DB_LIST longtext YES The list of databases to be fully recovered.
    TABLE_LIST longtext YES The list of tables to be recovered.
    REMAP_DB_LIST longtext YES The list of databases to be renamed. The format is db1:new_db1, db2:newdb2.
    REMAP_TABLE_LIST longtext YES The list of tables to be renamed. The format is 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 tg1:new_tg1, tg2:new_tg2. This parameter specifies the table groups to which tables are to be remapped.
    REMAP_TABLESPACE_LIST longtext YES The list of tablespaces to be remapped. The format is ts1:new_ts1, ts2:new_ts2. This parameter specifies the tablespaces to which tables are to be remapped.
    TOTAL_TABLE_COUNT bigint(20) NO The total number of tables to be imported.
    FINISHED_TABLE_COUNT bigint(20) NO The number of tables that have been imported.
    FAILED_TABLE_COUNT bigint(20) NO The number of tables that failed to be imported.
    RESULT varchar(64) YES The result of the table-level restore task. Valid values: SUCCESS and FAIL.
    COMMENT longtext YES The comment.
    DESCRIPTION longtext YES The DESCRIPTION information specified in the restore command.

    Sample query

    After a table restore task is completed, the sys tenant queries the history of cross-tenant import tasks of the target tenant.

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

    The query result is as follows:

    *************************** 1. row ***************************
                TENANT_ID: 1002
                   JOB_ID: 6
      INITIATOR_TENANT_ID: 1002
         INITIATOR_JOB_ID: 5
          START_TIMESTAMP: 2025-01-07 16:11:32.874841
         FINISH_TIMESTAMP: 2025-01-07 16:12:33.333660
          SRC_TENANT_NAME: AUX_RECOVER$1736237253959061
            SRC_TENANT_ID: 1008
                   STATUS: IMPORT_FINISH
               IMPORT_ALL: 0
                  DB_LIST:
               TABLE_LIST: `infotest`.`t2`
            REMAP_DB_LIST:
         REMAP_TABLE_LIST: `infotest`.`t2`:`infotest`.`newtb2`
    REMAP_TABLEGROUP_LIST:
    REMAP_TABLESPACE_LIST:
        TOTAL_TABLE_COUNT: 1
     FINISHED_TABLE_COUNT: 1
       FAILED_TABLE_COUNT: 0
                   RESULT: SUCCESS
                  COMMENT: import succeed table count: 1, failed table count: 0
              DESCRIPTION: NULL
    1 row in set
    

    Previous topic

    oceanbase.DBA_OB_ROOTSERVICE_EVENT_HISTORY
    Last

    Next topic

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