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_TASKS

    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 information about table-level cross-tenant import tasks.

    Columns

    Column
    Type
    Nullable
    Description
    TENANT_ID bigint(20) NO The ID of the task tenant.
    TASK_ID bigint(20) NO The ID of the load balancing task.
    JOB_ID bigint(20) NO The ID of the task.
    SRC_TENANT_ID bigint(20) NO The ID of the source tenant.
    SRC_TABLESPACE varchar(128) YES The TABLESPACE of the source table.
    SRC_TABLEGROUP varchar(128) YES The TABLEGROUP of the source table.
    SRC_DATABASE varchar(128) YES The DATABASE of the source table.
    SRC_TABLE varchar(128) YES The name of the source table.
    SRC_PARTITION varchar(64) YES The name of the PARTITION of the source table.
    TARGET_TABLESPACE varchar(128) YES The name of the remapped tablespace. If no remapping is performed, this column is empty.
    TARGET_TABLEGROUP varchar(128) YES The name of the remapped tablegroup. If no remapping is performed, this column is empty.
    TARGET_DATABASE varchar(128) YES The name of the remapped database. If no remapping is performed, this column is empty.
    TARGET_TABLE varchar(128) YES The name of the target table.
    TABLE_COLUMN bigint(20) NO The number of columns in the table.
    STATUS varchar(64) NO The status of the task. Valid values:
    • INIT: The table-level import task is being initialized.
    • DOING: The table-level import task is being executed.
    • FINISH: The import task is completed.
    START_TIMESTAMP timestamp(6) NO The current time of the tenant when the task starts.
    COMPLETION_TIMESTAMP timestamp(6) NO The current time of the tenant when the task is completed.
    CUMULATIVE_TS bigint(20) NO The cumulative time.
    TOTAL_INDEX_COUNT bigint(20) NO The total number of indexes.
    IMPORTED_INDEX_COUNT bigint(20) NO The number of indexes that have been imported.
    FAILED_INDEX_COUNT bigint(20) NO The number of indexes that failed to be imported.
    TOTAL_CONSTRAINT_COUNT bigint(20) NO The total number of constraints.
    IMPORTED_CONSTRAINT_COUNT bigint(20) NO The number of constraints that have been imported.
    FAILED_CONSTRAINT_COUNT bigint(20) NO The number of constraints that failed to be imported.
    TOTAL_REF_CONSTRAINT_COUNT bigint(20) NO The total number of reference constraints.
    IMPORTED_REF_CONSTRAINT_COUNT bigint(20) NO The number of reference constraints that have been imported.
    FAILED_REF_CONSTRAINT_COUNT bigint(20) NO The number of reference constraints that failed to be imported.
    RESULT varchar(64) YES The result of the table-level import task. Valid values:
    • SUCCESS
    • FAIL
    COMMENT longtext YES The comment.

    Sample query

    During table-level cross-tenant import, the sys tenant queries the information about the table-level cross-tenant import task.

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

    The query result is as follows:

    *************************** 1. row ***************************
                        TENANT_ID: 1002
                          TASK_ID: 247439
                           JOB_ID: 6
                    SRC_TENANT_ID: 1008
                   SRC_TABLESPACE: NULL
                   SRC_TABLEGROUP: NULL
                     SRC_DATABASE: infotest
                        SRC_TABLE: t2
                    SRC_PARTITION: NULL
                TARGET_TABLESPACE: NULL
                TARGET_TABLEGROUP: NULL
                  TARGET_DATABASE: infotest
                     TARGET_TABLE: newtb2
                     TABLE_COLUMN: 3
                           STATUS: DOING
                  START_TIMESTAMP: 2025-01-07 16:11:33.111473
             COMPLETION_TIMESTAMP: 
                    CUMULATIVE_TS: -1
                TOTAL_INDEX_COUNT: 0
             IMPORTED_INDEX_COUNT: 0
               FAILED_INDEX_COUNT: 0
           TOTAL_CONSTRAINT_COUNT: 0
        IMPORTED_CONSTRAINT_COUNT: 0
          FAILED_CONSTRAINT_COUNT: 0
       TOTAL_REF_CONSTRAINT_COUNT: 0
    IMPORTED_REF_CONSTRAINT_COUNT: 0
      FAILED_REF_CONSTRAINT_COUNT: 0
                           RESULT: 
                          COMMENT:
    1 row in set
    

    Previous topic

    oceanbase.CDB_OB_ARCHIVELOG_PIECE_FILES
    Last

    Next topic

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