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 Developer Center

V4.3.3

  • Overview
    • What is ODC?
    • Features
    • Architecture
    • Limitations
    • ODC console
  • Quick Start
    • Client ODC
      • Overview
      • Install Client ODC
      • Use Client ODC
    • Web ODC
      • Overview
      • Deploy Web ODC
      • Use Web ODC
  • Data Source Management
    • Create a data source
    • Data sources and project collaboration
    • Database O&M
      • Session management
      • Global variable management
      • Recycle bin management
  • SQL Development
    • SQL editing and execution
    • Perform PL compilation and debugging
    • Use the command-line window
    • Edit and export the result set of an SQL statement
    • Execution analysis
    • Generate test data
    • Database objects
      • Table objects
        • Overview
        • Create a table
      • View objects
        • Overview
        • Create a view
        • Manage views
      • Function objects
        • Overview
        • Create a function
        • Manage functions
      • Stored procedure objects
        • Overview
        • Create a stored procedure
        • Manage stored procedures
      • Sequence objects
        • Overview
        • Create a sequence
        • Manage sequences
      • Package objects
        • Overview
        • Create a program package
        • Manage program packages
      • Trigger objects
        • Overview
        • Create a trigger
        • Manage triggers
      • Type objects
        • Overview
        • Create a type
        • Manage types
      • Synonym objects
        • Overview
        • Create a synonym
        • Manage synonyms
  • Import and Export
    • Import schemas and data
    • Export schemas and data
  • Database Change Management
    • User Permission Management
      • Users and roles
      • Automatic authorization
    • Project collaboration management
    • Risk levels, risk identification rules, and approval processes
    • SQL check specifications
    • SQL window specification
    • Database change management
    • Logical database change management
    • Batch database change management
    • Online schema changes
    • Synchronize shadow tables
    • Schema comparison
  • Data Lifecycle Management
    • Archive data
    • Clean up data
    • Partitioning Plan Management
      • Manage partitioning plans
      • Set partitioning strategies
      • Examples
    • SQL plan task
  • Data Desensitization and Auditing
    • Desensitize data
    • Operation records
  • Notification Management
    • Overview
    • View notification records
    • Manage Notification Channel
      • Create a notification channel
      • View, edit, and delete a notification channel
      • Configure a custom channel
    • Manage notification rules
  • System Integration
    • Login integration
    • Approval integration
    • SQL approval integration
    • Bastion host integration
  • Deployment Guide
    • Deployment overview
    • Preparations before deployment
    • Deploy ODC in single-node mode
    • Deploy ODC in high-availability mode
    • Deployment verification
  • Upgrade Guide
    • Upgrade Overview
    • Preparations before upgrade
    • Update single-node ODC
    • Update high-avaliability ODC
    • Upgrade verification
    • Rollback after upgrade failed
  • Troubleshooting
    • ODC troubleshooting process
    • Collect Message
      • View the runtime environment and version information
      • View web ODC logs
      • View client ODC logs
      • View end-to-end ODC-related logs
      • View ODC MetaDB data
      • Query the index status in OceanBase Database V4.x
      • Query the index status in OceanBase Database V1.4.x to V3.2.x
      • Collect JVM runtime information
      • Use tcpdump to capture packets
    • FAQ
      • Installation of client ODC
      • Web ODC deployment and startup
      • Connection Information
      • Command-line window
      • DDL statement display
  • Release Note
    • V4.3
      • ODC V4.3.3
      • ODC V4.3.2
      • ODC V4.3.1
      • ODC V4.3.0
    • V4.2
      • ODC V4.2.4
      • ODC V4.2.3
      • ODC V4.2.2
      • ODC V4.2.1
      • ODC V4.2.0
    • V4.1
      • ODC V4.1.3
      • ODC V4.1.2
      • ODC V4.1.1
      • ODC V4.1.0
    • V4.0
      • ODC V4.0.2
      • ODC V4.0.0
    • V3.4
      • ODC V3.4.0
    • V3.3
      • ODC V3.3.3
      • ODC V3.3.2
      • ODC V3.3.1
      • ODC V3.3.0
    • V3.2
      • ODC V3.2.3
      • ODC V3.2.2
      • ODC V3.2.1
      • ODC V3.2.0

Download PDF

What is ODC? Features Architecture Limitations ODC console Overview Install Client ODC Use Client ODC Overview Deploy Web ODC Use Web ODC Create a data source Data sources and project collaboration Session management Global variable management Recycle bin management SQL editing and execution Perform PL compilation and debugging Use the command-line window Edit and export the result set of an SQL statement Execution analysis Generate test data Import schemas and data Export schemas and data Users and roles Automatic authorization Project collaboration management Risk levels, risk identification rules, and approval processes SQL check specifications SQL window specification Database change management Logical database change management Batch database change management Online schema changes Synchronize shadow tables Schema comparison Archive data Clean up data Manage partitioning plans Set partitioning strategies Examples SQL plan task Desensitize data Operation records Overview View notification records Create a notification channel View, edit, and delete a notification channel Configure a custom channel Manage notification rules Login integration Approval integration SQL approval integration Bastion host integration Deployment overview Preparations before deployment Deploy ODC in single-node mode Deploy ODC in high-availability mode Deployment verification Upgrade Overview Preparations before upgrade Update single-node ODC Update high-avaliability ODC Upgrade verification Rollback after upgrade failed ODC troubleshooting process View the runtime environment and version information View web ODC logs View client ODC logs View end-to-end ODC-related logs View ODC MetaDB data Query the index status in OceanBase Database V4.x Query the index status in OceanBase Database V1.4.x to V3.2.x Collect JVM runtime information Use tcpdump to capture packets Installation of client ODC Web ODC deployment and startup Connection Information Command-line window DDL statement display ODC V4.3.3 ODC V4.3.2 ODC V4.3.1 ODC V4.3.0 ODC V4.2.4 ODC V4.2.3 ODC V4.2.2 ODC V4.2.1 ODC V4.2.0 ODC V4.1.3 ODC V4.1.2 ODC V4.1.1 ODC V4.1.0 ODC V4.0.2 ODC V4.0.0 ODC V3.4.0 ODC V3.3.3 ODC V3.3.2 ODC V3.3.1 ODC V3.3.0
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 Developer Center
  3. V4.3.3
iconOceanBase Developer Center
V 4.3.3
  • V 4.4.2
  • V 4.4.1
  • V 4.4.0
  • V 4.3.4
  • V 4.3.3
  • V 4.3.2
  • V 4.3.1
  • V 4.3.0
  • V 4.2.4
  • V 4.2.3
  • V 4.2.2
  • V 4.2.1
  • V 4.2.0
  • V 4.1.3 and earlier

Import schemas and data

Last Updated:2026-04-13 07:30:36  Updated
share
What is on this page
Background information
Import formats
Considerations
Create an import task
Import schemas and data of an OceanBase database
Import schemas and data of a MySQL database
Import schemas and data of an Oracle database
View an import task
Task list
Task information
Task process
Task logs
References

folded

share

Background information

OceanBase Developer Center (ODC) allows you to import schemas and data of database objects in batches.

You can create import tasks in ODC to import both schemas and data, only data, or only schemas of database objects.

  • Import schemas and data: You can import both the definition statements and data of database objects.

  • Import only data: You can import only the data of table or view objects.

  • Import only schemas: You can import only definition statements of database objects.

Import formats

ODC supports importing ZIP (batch import and single-table import), SQL (batch import), and CSV (single-table import) files.

A ZIP file here is a compressed package that is suffixed with .zip. In the Create Import Task panel, select ZIP Files for Import Format, and then select CSV Format or SQL Format for Data Format, which specifies the data format of the package.

SQL files supported for batch data import are suffixed with .sql and contain statements that can be directly executed in the database. These statements include SELECT, INSERT, UPDATE, DELETE, CREATE, and DROP.

CSV files supported for single table import are data files that are suffixed with .csv or .txt. These files support custom delimiters.

Considerations

  • The maximum size of files imported in one batch in Web ODC cannot exceed 2 GB after compression. To import data of a larger size, use the data import tool OBLOADER.

  • At most five concurrent import tasks are supported. Subsequent tasks need to wait in the queue.

  • By default, files related to import tasks are retained for 14 days.

  • In OceanBase V4.0.0 and earlier versions, configuring the sys tenant account and password in the data source can improve import speed. ODC can calculate the optimal parallel import strategy based on partition locations, and OceanBase V4.0.0 and earlier versions require querying and determining partition locations through the sys tenant.

  • For OceanBase versions after V4.0.0, it is not necessary to configure the sys tenant account and password in the data source. ODC supports querying and determining partition locations through the views of the business tenant.

Create an import task

Import schemas and data of an OceanBase database

Example: Import the schemas and data of the employee and salary tables on the local disk to the odc_test database.

Parameter Example value
Data source mysql4.2.0
Database name odc_test
Table name employee and salary
  1. On the Tickets tab, choose Data Import > Create New.

    2

  2. In the task panel that appears, select the format of the file to be imported.

    3

    Note

    • In ODC V4.2.3 and later, you can import schemas and data of a MySQL database.
    • At present, ODC supports importing CSV, SQL, and ZIP files in batches.
    • If you select CSV Files for Import Format, header fields of the first row can be skipped during the import.
    • If you select ZIP Files for Import Format, you can import a single table or multiple tables and skip existing schemas.
  3. Upload the file to be imported.

    Click the file pool to go to the file explorer and select the file to be imported. You can also directly drag the file to the file pool to upload it. The format of the uploaded file must be the same as the value you specified for Import Format. Upload a file suffixed with .zip if you have selected ZIP Files for Import Format, upload a file suffixed with .sql if you have selected SQL Files for Import Format, and upload a file suffixed with .csv if you have selected CSV Files for Import Format.

  4. Specify File Encoding.

    ODC supports the following encoding standards: ASCII, ISO-8859-1, GB2312, GBK, GB18030, Unicode (UTF-8), Unicode (UTF-16), Unicode (UTF-32), and BIG5.

  5. Go to the Import Settings panel.

    Click Next: Import Settings to complete file import settings.

  6. Specify Import Content.

    4

    Note

    • You must specify this parameter when you select ZIP Files for Import Format.
    • At present, ODC supports three import modes: Import Data Only, Import Schema Only, and Import Data and Schema. The Import Schema Only mode specifies to import the definition statement of the target object.
  7. Select the database.

    Select the database to which the data object is to be imported. The name of the data source for the database to which the task belongs is also displayed.

  8. Complete the settings in the Import Data Settings section.

    If you select ZIP Files for Import Format and Import Data Only or Import Schema and Data for Import Content, you must configure data import settings. You need to specify the following fields:

    • Clear Data Before Import: If you select this option, the original data in the destination object is cleared during data import.

    • Batch Commit Quantity: You can click Advanced next to Import Data Settings to specify this field. After you specify this field, a COMMIT statement is executed when the number of exported data rows reaches the specified quantity.

    • Skipped Data Type (Optional): You can specify the data types to be skipped during data import. The data types that can be skipped are different in MySQL and Oracle modes. You can select multiple data types.

  9. Specify the Import Schema Settings field.

    You cannot specify this field if you select Import Data Only for Import Content. This field involves operations on schemas that already exist. If you select Skip, the system skips the schema definition statement in the file to be imported and directly imports the data. The original data in the object is retained. If you select Replace, the system executes the schema definition statement in the file to be imported to re-create an object and replace the original one. Data in the original object is cleared.

  10. Specify the error handling method and execution mode.

  • ODC supports two error handling methods: Abort Task and Ignore Error and Continue. You need to select the handling method as required.

  • Select Execute Now or Scheduled Execution.

  1. Choose whether to retain the current settings.

    You can select Retain Current Configuration in the lower-left corner to save the current data file and schema file settings.

  2. Generate the import task.

    After you specify all preceding information, you can click Submit in the lower-right corner of the panel to create an import task.

  3. View the import task.

    After the task is generated, the Tickets tab automatically appears, where you can view the task information.

Import schemas and data of a MySQL database

Note

In ODC V4.2.3 and later, you can import schemas and data of a MySQL database.

Example: Import the schemas and data of the employee and salary tables on the local disk to the odc_test database.

Parameter Example value
Data source mysql4.2.2
Database name odc_mysql
Table name employee and student
  1. On the Tickets tab, choose Data Import > Create New.

    2

  2. In the task panel that appears, select the format of the file to be imported.

    5mysql

    Note

    • At present, ODC supports importing CSV, SQL, and ZIP files in batches.
    • If you select CSV Files for Import Format, header fields of the first row can be skipped during the import.
    • If you select ZIP Files for Import Format, you can import a single table or multiple tables and skip existing schemas.
  3. Upload the file to be imported.

    Click the file pool to go to the file explorer and select the file to be imported. You can also directly drag the file to the file pool to upload it. The format of the uploaded file must be the same as the value you specified for Import Format. Upload a file suffixed with .zip if you have selected ZIP Files for Import Format, upload a file suffixed with .sql if you have selected SQL Files for Import Format, and upload a file suffixed with .csv if you have selected CSV Files for Import Format.

  4. Specify File Encoding.

    ODC supports the following encoding standards: ASCII, ISO-8859-1, GB2312, GBK, GB18030, Unicode (UTF-8), Unicode (UTF-16), Unicode (UTF-32), and BIG5.

  5. Go to the Import Settings panel.

    Click Next: Import Settings to complete file import settings.

  6. Specify Import Content.

    6mysql

    Note

    • You must specify this parameter when you select ZIP Files for Import Format.
    • At present, ODC supports three import modes: Import Data Only, Import Schema Only, and Import Data and Schema. The Import Schema Only mode specifies to import the definition statement of the target object.
  7. Select the database.

    Select the database to which the data object is to be imported. The name of the data source for the database to which the task belongs is also displayed.

  8. Complete the settings in the Import Data Settings section.

    If you select ZIP Files for Import Format and Import Data Only or Import Schema and Data for Import Content, you must configure data import settings. You need to specify the following fields:

    • Clear Data Before Import: If you select this option, the original data in the destination object is cleared during data import.

    • Batch Commit Quantity: You can click Advanced next to Import Data Settings to specify this field. After you specify this field, a COMMIT statement is executed when the number of exported data rows reaches the specified quantity.

  9. Specify the Import Schema Settings field.

    You cannot specify this field if you select Import Data Only for Import Content. This field involves operations on schemas that already exist. If you select Skip, the system skips the schema definition statement in the file to be imported and directly imports the data. The original data in the object is retained. If you select Replace, the system executes the schema definition statement in the file to be imported to re-create an object and replace the original one. Data in the original object is cleared.

  10. Specify the error handling method and execution mode.

  • ODC supports two error handling methods: Abort Task and Ignore Error and Continue. You need to select the handling method as required.

  • Select Execute Now or Scheduled Execution.

  1. Choose whether to retain the current settings.

    You can select Retain Current Configuration in the lower-left corner to save the current data file and schema file settings.

  2. Generate the import task.

    After you specify all preceding information, you can click Submit in the lower-right corner of the panel to create an import task.

  3. View the import task.

    After the task is generated, the Tickets tab automatically appears, where you can view the task information.

Import schemas and data of an Oracle database

Note

In ODC V4.2.4 and later, you can import schemas and data of an Oracle database.

Example: Import the schemas and data of the employee and student tables on the local disk to the ODC_TEST database.

Parameter Example value
Data source oracle424
Database name ODC_TEST
Table name employee and student
  1. On the Tickets tab, choose Data Import > Create New.

  2. In the task panel that appears, select the format of the file to be imported.

    Note

    • At present, ODC supports importing CSV, SQL, and ZIP files in batches.
    • If you select CSV Files for Import Format, header fields of the first row can be skipped during the import.
    • If you select ZIP Files for Import Format, you can import a single table or multiple tables and skip existing schemas.
  3. Upload the file to be imported.

    Click the file pool to go to the file explorer and select the file to be imported. You can also directly drag the file to the file pool to upload it. The format of the uploaded file must be the same as the value you specified for Import Format. Upload a file suffixed with .zip if you have selected ZIP Files for Import Format, upload a file suffixed with .sql if you have selected SQL Files for Import Format, and upload a file suffixed with .csv if you have selected CSV Files for Import Format.

  4. Specify File Encoding.

    ODC supports the following encoding standards: ASCII, ISO-8859-1, GB2312, GBK, GB18030, Unicode (UTF-8), Unicode (UTF-16), Unicode (UTF-32), and BIG5.

  5. Go to the Import Settings panel.

    Click Next: Import Settings to complete file import settings.

  6. Specify Import Content.

    Note

    • You must specify this parameter when you select ZIP Files for Import Format.
    • At present, ODC supports three import modes: Import Data Only, Import Schema Only, and Import Data and Schema. The Import Schema Only mode specifies to import the definition statement of the target object.
  7. Select the database.

    Select the database to which the data object is to be imported. The name of the data source for the database to which the task belongs is also displayed.

  8. Complete the settings in the Import Data Settings section.

    If you select ZIP Files for Import Format and Import Data Only or Import Schema and Data for Import Content, you must configure data import settings. You need to specify the following fields:

    • Clear Data Before Import: If you select this option, the original data in the destination object is cleared during data import.

    • Batch Commit Quantity: You can click Advanced next to Import Data Settings to specify this field. After you specify this field, a COMMIT statement is executed when the number of exported data rows reaches the specified quantity.

    • Skipped Data Types (Optional): You can specify to skip the BLOB and CLOB types during data import.

  9. Specify the Import Schema Settings field.

    You cannot specify this field if you select Import Data Only for Import Content. This field involves operations on schemas that already exist. If you select Skip, the system skips the schema definition statement in the file to be imported and directly imports the data. The original data in the object is retained. If you select Replace, the system executes the schema definition statement in the file to be imported to re-create an object and replace the original one. Data in the original object is cleared.

  10. Specify the error handling method and execution mode.

  • ODC supports two error handling methods: Abort Task and Ignore Error and Continue. You need to select the handling method as required.

  • Select Execute Now or Scheduled Execution.

  1. Choose whether to retain the current settings.

    You can select Retain Current Configuration in the lower-left corner to save the current data file and schema file settings.

  2. Generate the import task.

    After you specify all preceding information, you can click Submit in the lower-right corner of the panel to create an import task.

  3. View the import task.

    After the task is generated, the Tickets tab automatically appears, where you can view the task information.

View an import task

Task list

Note

  • The task list displays tasks of the last 48 hours.
  • At most three concurrent import tasks are supported. Subsequent tasks need to wait in the queue.

After an import task is generated, the Tickets tab automatically appears, where you can view the status, information, and logs of the task.

The following table describes the information displayed in the import task list.

Parameter Description
No. The ID of the import task.
Type The type of the task specified when you created the task.
Ticket Description The description entered when the task was initiated.
Current Reviewer The approver. You can click the Search icon to search for or filter tasks by a specific reviewer.
Created By The user who created the import task. You can click the search icon to search for or filter tasks by a specific creator.
Created At The date and time when the task was generated.
Status The current status of the task. ODC provides different management actions for tasks in different states.
Actions Click View to go to the Task Details panel to view the task information and task logs.

Task information

  1. In the import task list shown in the preceding figure, click View in the Actions column of a task to view information about the task.

  2. In the Task Details panel, click the Task Information tab to view the basic task information, file import information, and object information.

    Item Description
    Basic task information The execution status, ID, database, type, risk level, execution method, creator, and creation time of the task are displayed.
    File import information The import format, file to be imported, file encoding standard, data format, and error handling method specified when the import task was created are displayed.
    Object information The information about the import objects is displayed in the following columns: Object Name, Object Type, Actual Processing Quantity, and Data Processing Status.

Task process

In the Task Details panel of the target task, click the Task Process tab to view the initiation, approval, and execution information of the task.

Task logs

In the Task Details panel of the target task, click the Task Logs tab to view all logs and alert logs of the task.

Tab Description
All Logs Displays the complete information of all task logs, including INFO, ERROR, and WARN logs.
Alert Logs Displays the ERROR and WARN logs of the task. When a task fails, you can view the error message in the alert logs.

In addition, the toolbar provides the following icons:

Icon Description
Search Click this icon to search for logs.
Download Click this icon to download logs.
Copy Click this icon to copy logs.

References

  • Export schemas and data

Previous topic

Manage synonyms
Last

Next topic

Export schemas and data
Next
What is on this page
Background information
Import formats
Considerations
Create an import task
Import schemas and data of an OceanBase database
Import schemas and data of a MySQL database
Import schemas and data of an Oracle database
View an import task
Task list
Task information
Task process
Task logs
References