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.2.0

  • Overview
    • What is ODC?
    • Features
    • Architecture
    • Limitations
    • User interface
  • 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 source and project collaboration
    • Database O&M
      • Session management
      • Global variable management
      • Recycle bin management
  • SQL Development
    • Edit and execute SQL statements
    • Compile and debug PL objects
    • Command-line window
    • Edit and export results
    • Analyze SQL statements
    • Data mocking
    • 700.database-objects
      • Table objects
        • Overview
        • Create a table
        • Table list
        • Manage table attributes
        • Manage table data
      • 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 schema and data
    • Export schema and data
  • Database Change Management
    • User Permission Management
      • Users and roles
      • Automatic authorization
    • Collaborative project management
    • Risk levels, risk identification rules, and approval processes
    • SQL check specifications
    • Manage database changes
    • SQL window specification
    • Change lock-free structures
    • Synchronize shadow tables
  • Data Lifecycle Management
    • Archive data
    • Data cleanup
    • Manage partitions
    • SQL plan task
  • Data Desensitization and Auditing
    • Data desensitization
    • Operation audit
  • System Integration
    • SSO integration
    • Approval integration
    • SQL approval integration
  • Deployment Guide
    • Deployment overview
    • Preparations before deployment
    • Deploy a single ODC node
      • Deployment process
      • Load and run an ODC image
    • Deploy ODC in high availability mode
      • Deployment process
      • Load and run an ODC image
      • Deploy SSL certificate
      • Deploy the NGINX proxy
      • Configure certificate trust
    • Deployment verification
  • Upgrade Guide
    • Overview
    • Preparations before upgrade
    • Upgrade single-node ODC
      • Upgrade process
      • Stop ODC of the earlier version
      • Load and run an ODC image
    • Upgrade high-availability
      • Upgrade process
      • Stop ODC of the earlier version
      • Load and run an ODC image
      • Upgrade NGINX image
    • 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
    • Common Troubleshooting
      • Deployment Upgrade
        • Web ODC cannot be accessed after startup
      • Database Connection
        • Access denied in a connection trial or test
        • Connection is refused in a connection trial or test
        • Connection times out
        • `Connection reset` is reported for a time-consuming statement
        • `socket write error` or `closed by server` is reported for a connection
      • SQL Execution
        • Disconnection during SQL execution
        • `Over tenant memory limits` is reported during SQL execution
        • `Unknown thread id` is returned during SQL execution
        • `timeout` errors returned during SQL execution
        • `OutOfMemoryError` is returned during SQL execution
        • Incomplete result columns for the SELECT statement
        • Garbled Chinese characters in the SQL execution result set
        • Garbled Chinese data is returned for query of data in GBK encoding
      • PL Object
        • Debugging is not supported for invalid PL objects
        • `JSONException` is reported during PL debugging
        • Garbled variable values in debugging
        • Failed to view PL objects or garbled characters are returned
        • PL objects cannot be executed or an execution error is returned
        • ODC issues during PL debugging
        • PL anonymous block cannot be debugged
        • Alert information of a PL object is unavailable
      • Import and Export
        • Garbled Chinese characters in an imported file in GBK encoding
        • Invalid ZIP package reported during file import
        • Time-type data exported from an Oracle tenant cannot be imported
        • Mismatched columns reported during the import of a single-table CSV file
        • Failed to export a result set in ODC to an Excel file
        • Incorrect display in Excel for a result set exported in CSV format
        • Incomplete data in batch export of multiple tables
        • `javax.crypto.BadPaddingException: Given final block not properly padded` is returned for a data import or export failure
      • Client ODC Problems
        • Client ODC startup failure / H2 Database corruption: Chuck not found
        • Garbled Chinese characters in the command-line window of ODC
        • Failed to install client ODC
        • Client ODC startup failure or no response
        • `Not a valid secret key` is returned for connection creation in client ODC
        • `User does not exist` returned for connection creation in client ODC
        • High memory usage of client ODC
        • Client ODC fails to be installed or start due to a port conflict
      • Front-end Page Exception
        • JavaScript exception is thrown on the ODC page
        • No response in browser after opening ODC
        • White screen in ODC
      • Account Password Problem
        • Forgot the admin account password in ODC V3.2.0 or later
        • Forgot an account password in ODC V2.4.1 to V3.1.3
        • Forgot an account password in ODC V2.4.0 or earlier
    • FAQ
      • Installation of client ODC
      • Web ODC deployment and startup
      • Connection information
      • Command-line window
      • DDL statement display
  • Release Note
    • 90.odc-rn-4.2
      • ODC V4.2.0
    • V4.1
      • 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 User interface Overview Install Client ODC Use Client ODC Overview Deploy Web ODC Use Web ODC Create a data source Data source and project collaboration Session management Global variable management Recycle bin management Edit and execute SQL statements Compile and debug PL objects Command-line window Edit and export results Analyze SQL statements Data mocking Import schema and data Export schema and data Users and roles Automatic authorization Collaborative project management Risk levels, risk identification rules, and approval processes SQL check specifications Manage database changes SQL window specification Change lock-free structures Synchronize shadow tables Archive data Data cleanup Manage partitions SQL plan task Data desensitization Operation audit SSO integration Approval integration SQL approval integrationDeployment overview Preparations before deployment Deployment process Load and run an ODC image Deployment process Load and run an ODC image Deploy SSL certificate Deploy the NGINX proxy Configure certificate trust Deployment verificationOverview Preparations before upgrade Upgrade process Stop ODC of the earlier version Load and run an ODC image Upgrade process Stop ODC of the earlier version Load and run an ODC image Upgrade NGINX image Upgrade verification Rollback after upgrade failed ODC troubleshooting process View the runtime environment and version information View web ODC logsView client ODC logsView end-to-end ODC-related logsView ODC MetaDB dataQuery the index status in OceanBase Database V4.xQuery the index status in OceanBase Database V1.4.x to V3.2.xCollect JVM runtime informationUse tcpdump to capture packetsInstallation of client ODCWeb ODC deployment and startupConnection informationCommand-line windowDDL statement display ODC V4.2.0 ODC V4.1.2 ODC V4.1.1 ODC V4.1.0 ODC V4.0.2 ODC V4.0.0ODC V3.4.0ODC V3.3.3 ODC V3.3.2 ODC V3.3.1 ODC V3.3.0 ODC V3.2.3 ODC V3.2.2 ODC V3.2.1 ODC V3.2.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.2.0
iconOceanBase Developer Center
V 4.2.0
  • 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

Export schema and data

Last Updated:2026-04-13 06:20:38  Updated
share
What is on this page
Background information
Formats of exported files
Considerations
Create an export task
View an export task
Task list
Task information
Task process
Task logs
Export files
References

folded

share

This topic provides information on exporting the schema and data of database objects.

Background information

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

You can create an export task to export only schemas of database objects, only data of database objects, or both.

  • Export both schema and data: Export both the definition statements and data of database objects.

  • Export data only: Export only data of table or view objects.

  • Export schema only: Export only definition statements of database objects.

Formats of exported files

ODC exports data in a zip file, which contains the metadata file MANIFEST.bin, the schema definition files of the exported objects, and the data files.

When you create an export task, if you set Data Format to SQL Format, the zip file contains the schema definition files named in the <object name>-schema.sql format and data files named in the <object name>.sql format. The object names are the same as those of the objects in the database.

Image 445

If you set Data Format to CSV Format, the zip file contains the schema definition files named in the <object name>-schema.sql format and data files named in the <object name>.csv format. The object names are the same as those of the objects in the database.

Image 444

Considerations

  • In web ODC, the maximum size of files exported in one batch cannot exceed 2 GB before compression. To export data of a larger size, use OceanBase OBDUMPER.

  • The status of a task, such as Succeeded, Failed, and Canceled, does not affect the lifecycle of the task files. Tasks are permanently retained. Task-related files are retained for 14 days by default.

  • Instances earlier than OceanBase Database V2.2.30 support only UTF8.

  • In ODC V2.2.1 and earlier, to use the export feature, you must connect to the target OceanBase Database instance by using ODP. ODC does not support the export feature for direct connections.

  • In ODC V2.4.1 and later versions, you can configure the sys tenant account to improve the export speed. To export objects other than tables and views, you must configure the sys tenant account.

Create an export task

Assume that you want to batch export the schemas and data of the employee and salary tables from the odc_test database to a local disk.

Parameter Example
Data Source mysql410
Database Name odc_test
Table Name employee, salary
  1. On the Ticket tab, choose Export > Create Export Task.

  2. In the Create Export Task panel, select the content to be exported.

  3. Select a database.

    Select the database where the object to export resides. The data source name of the target database of the task is also displayed.

    Notice

    OceanBase Database does not support the export feature for built-in databases in MySQL mode.

  4. Select the export range.

    You can select Partial Export or Full Export.

    • If you select Partial Export, you can select the objects you want to export in the Select Objects pane in the Export Objects section. You can use the search field to search for desired objects.

    • If you select Full Export, all objects in the database are exported.

  5. Go to the Export Settings panel.

    Click Next: Export Settings to specify the file export settings and the sys tenant account.

  6. Configure the data files.

    Note

    If you set Export Content to Export Schema Only, you do not need to configure a data file.

    Parameter Description
    Data Format ODC supports exporting data to files in the CSV format and SQL format. If you specify Export Schema Only for Export Content, you can only export data to files in the SQL format.
    File Encoding ODC supports the following file encodings: ASCII, ISO-8859-1, GB2312, GBK, GB18030, Unicode (UTF-8), Unicode (UTF-16), Unicode (UTF-32), and BIG5.
    Maximum Size of a Single File If you set Export Content to Export Schema Only, you do not need to configure this parameter.
    You can select the maximum size of a single-table data file. If the size of a file exceeds the maximum size, the file is automatically split into smaller ones for the export. If you do not specify the maximum size, the files are not split into small ones.
    CSV Settings If you select the CSV format for the export and set Export Content to Export Schema and Data, you can specify the following information:
    • Include Column Header: specifies whether to include column headers when data is exported in CSV format. This option is selected by default.
    • Convert Empty Character String into Null Value: This option is selected by default to determine whether to convert empty strings in the table to NULL values when data is exported in CSV format.
    • Field Separator: specifies the separator between fields. The following signs are supported: commas (,), semicolons (;), and colons (:). You can also use a character as the separator.
    • Text Identifier: specifies the identifier for the text content. Single quotation marks (') and double quotation marks (") are supported.
    • Line Break Symbol: specifies the line break symbol. The following characters are supported: \n, \r, and \r\n.
    Batch Commit Quantity (SQL Format) When you export data in the SQL format, after you specify this field, a COMMIT statement is executed when the number of exported data rows reaches the specified quantity.
    Use Global Snapshot After you select this option, ODC will export the data in the globally latest snapshot for the specified table. You can select this option to ensure global data consistency.
  7. Configure schema files.

    • If you set Export Content to Export Schema Only, you can select whether to merge the export results into one SQL file. If you select this option, the DDL statements are merged into and exported as an SQL file.

    • Choose whether to select Add DROP TABLE Statement before CREATE TABLE Statement. If you select this option, a DROP statement is added before the corresponding CREATE statement of an object when the schema files of the object are exported.

  8. Specify the task execution method.

    Select Execute Immediately or Timed Execution.

  9. Set the sys tenant account.

    1. Select Use sys Tenant Account to Accelerate Import Task and specify Account and Password.

    2. Click Test Connection next to the password field to test the connection to the target database. By default, the account for the connection settings is automatically filled in. If the connection fails, we recommend that you change the password for this export.

      Notice

      • The account and password of the sys tenant are the account and password of a user in the cluster. Do not enter @sys#cluster in the Account field. For example, the account of the root@sys user is root.
      • If the sys tenant account is not configured, the import and export speed may be affected.
  10. Retain the current configuration.

    After specifying all information, select Retain Current Configuration in the lower-left corner of the panel to save the configuration of the current data files and schema files.

  11. Generate an export task.

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

View an export task

Task list

Note

  • The tasks in the last 48 hours are displayed in the task list.
  • ODC allows you to run up to three export tasks in parallel, while subsequent tasks wait in the queue.

After an export task is generated, the Ticket panel appears. In the Export panel, you can view the approval status and basic information of the task and download the exported data and schema files.

The following table describes the columns in the Export task list.

Column Description
No. The ID of the export task.
Type The type of the task specified when you created the task.
Ticket Description The description that you entered when you initiated the task.
Current Reviewer The reviewer of the task. Click the Search icon to search for and filter the operator.
Created By The user who created the export task. You can click the search icon Search to search for tasks created by a specific creator.
The time when the replica was created. 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 page to view the task information and task logs.

Task information

  1. As shown in the preceding figure, click View in the Export task list.

  2. In the Task Details panel, click the Task Information tab to view the basic information of the task, export files, and export objects.

    Parameter Description
    Basic task information Displays information in fields such as Execution Status, Task ID, Database, Task Type, Risk Level, Execution Method, Created By, and Created At.
    Export file information Displays fields such as Export Content, Data Format, File Encoding, Export Data Settings, Export Schema Settings, Task Error Handling, and sys Tenant Account Settings.
    Export object information Displays the information about the objects during data export, including Object Name, Object Type, Schema Processing Status, Processed Quantity, and Data Processing Status.

Task process

In the Task Details panel, click the Task Process tab to view the status information, such as Initiated Task, Approval, and Execution.

Task logs

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

Parameter 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 buttons:

Button Description
Find Click this button to search for logs.
Download Click this button to download logs.
Copy Click this button to copy logs.

Export files

In the lower-right corner of the Task Details panel, click Download to export the files to your local disk.

References

  • Import data

Previous topic

Import schema and data
Last

Next topic

Users and roles
Next
What is on this page
Background information
Formats of exported files
Considerations
Create an export task
View an export task
Task list
Task information
Task process
Task logs
Export files
References