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 Loader and Dumper

V3.0.0Community Edition

  • Document Overview
  • OBLOADER
    • Overview
    • User Guide
      • Environment preparation
      • Run OBLOADER
      • Command-line options
      • Data processing
        • Define control files
        • Preprocessing functions
        • Conditional expressions
      • Performance tuning
      • Scenarios
    • FAQ
  • OBDUMPER
    • Overview
    • User Guide
      • Environmental Preparation
      • Run OBDUMPER
      • Command-line options
      • Data
        • Define control files
        • Preprocessing functions
        • Conditional expressions
      • Performance tuning
      • Scenarios
    • FAQ

Download PDF

Document OverviewOverview Environment preparation Run OBLOADER Command-line options Performance tuning Scenarios FAQ Overview Environmental Preparation Run OBDUMPER Command-line options Performance tuning Scenarios FAQ
OceanBase logo

The Unified Distributed Database for the AI Era.

Follow Us
Products
OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
Resources
DocsBlogWhite PaperLive 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 Loader and Dumper
  3. V3.0.0
iconOceanBase Loader and Dumper
V 3.0.0Community Edition
Databases
  • OceanBase Database
  • OceanBase Cloud
  • OceanBase Tugraph
  • Interactive Tutorials
  • OceanBase Best Practices
Tools
  • OceanBase Cloud Platform
  • OceanBase Migration Service
  • OceanBase Developer Center
  • OceanBase Migration Assessment
  • OceanBase Admin Tool
  • OceanBase Loader and Dumper
  • OceanBase Deployer
  • Kubernetes operator for OceanBase
  • OceanBase Diagnostic Tool
  • OceanBase Binlog Service
Connectors and Middleware
  • OceanBase Database Proxy
  • Embedded SQL in C for OceanBase
  • OceanBase Call Interface
  • OceanBase Connector/C
  • OceanBase Connector/J
  • OceanBase Connector/ODBC
  • OceanBase Connector/NET
  • V 4.3.6
  • V 4.3.5
  • V 4.3.4.1
  • V 4.3.4
  • V 4.3.3.1
  • V 4.3.3
  • V 4.3.2.1
  • V 4.3.2
  • V 4.3.1
  • V 4.2.8
  • V 4.2.7
  • V 4.2.6
  • V 4.2.5 and earlier
Community Edition
  • V 4.2.5
  • V 4.2.4
  • V 4.1.0
  • V 4.0.0
  • V 3.0.0
Enterprise Edition
  • V 4.2.5
  • V 4.2.4

Overview

Last Updated:2026-04-13 07:40:24  Updated
Share
What is on this page
What is OBDUMPER?
Features
Supported OceanBase Database versions
Usage notes
Limited mode
Usage notes

folded

Share

What is OBDUMPER?

OBDUMPER is a client-side data export tool developed in Java. You can use OBDUMPER to export data from OceanBase Database to files in the SQL or CSV format. You can also use it to export objects defined in databases to files.

OBDUMPER is advantageous over other export tools such as MyDumper and SQL Developer in the following aspects:

  • High performance

    OBDUMPER is specifically optimized for partitioned tables and tables without a primary key.

  • Rich features

    OBDUMPER provides various features, including limited data export, various data formats, and global consistent nonlocking export.

Features

OBDUMPER allows you to export data in object schemas and tables from OceanBase Database to files. OBDUMPER provides the following features:

  • Allows you to export the DDL statements of object schemas in a database.

  • Allows you to export table data to files in the CSV or SQL format.

  • Allows you to export data from some partitions of a partitioned table by specifying the names of the partitions.

  • Allows you to specify global filters to export only the data that meets the specified conditions.

  • Supports simple data cleansing rules.

  • Supports global consistent nonlocking read to ensure the global consistency of the exported data.

  • Supports system change number (SCN)-based or timestamp-based flashback queries to ensure the global consistency of the exported data.

  • Supports data export in limited mode, in which you do not need to specify account information of users under the sys tenant.

  • Allows you to export the data and upload it to Object Storage Service (OSS).

  • Supports the merge of multiple data files exported from a table into one file. This feature reduces the number of exported data files.

  • Supports the exported schema to contain TABLEGROUP information.

  • Supports the read of backup data from the replica of an OceanBase cluster.

  • Allows you to export custom SQL result sets into files of the SQL, CSV, and CUT formats.

Supported OceanBase Database versions

The following table describes OceanBase Database versions that are supported by OBDUMPER.

Database
Supported version
OceanBase Database in Oracle mode V2.2.30, V2.2.52, V2.2.7x, V3.1.x, and V3.2.x.
OceanBase Database in MySQL mode V1.4.70, V1.4.72, V1.4.75, V1.4.78, V1.4.79, V2.2.30, V2.2.50, V2.2.70, V2.2.71, V2.2.72, V2.2.76, V3.1.x, and V3.2.x

Notice

OBLOADER and OBDUMPER V3.0.0 and later are compatible with OceanBase Database Community Edition.

You can use OBLOADER and OBDUMPER in OceanBase Database Community Edition V3.1.2 and later.

Usage notes

  • If a foreign key contains several columns, the order of the columns might change after the export. Example: FOREIGN KEY(c1,c2) REFERENCE (c1,c2).

  • OceanBase Database V1.4.72 in MySQL mode does not allow you to export the schema definitions of unique prefix indexes, such as UNIQUE(c1(10)).

  • OceanBase Database V1.4.x in MySQL mode does not allow you to export the definitions of generated columns, such as GENERATED ALWAYS AS (expr).

  • OceanBase Database V2.2.50 and earlier versions in MySQL mode do not allow you to export the schema definition statements of function-based indexes.

  • For more information about the standard CSV format, see the RFC 4180 specifications. We recommend that you export data in strict accordance with the RFC 4180 specifications.

  • You need to modify the VM memory parameter, which is defaulted as -Xms4G -Xmx4G, in the script when you intend to import or export a large amount of data.

  • The object names, data file names, and rule file names specified by command-line options must be capitalized in the same way. By default, uppercase letters are used in Oracle mode, and lowercase letters are used in MySQL mode.

  • To improve the data export performance, we recommend that you trigger major compaction for one time before you export data.

  • All exported data files are named in the table.group.sequence.suffix format.

  • OceanBase Database V2.2.7x in MySQL mode does not allow you to export vertical partitions. For example, partitions created by using the PARTITION BY COLUMN statement cannot be exported.

  • OceanBase Database V2.2.7x in MySQL mode does not allow you to export synonyms. For example, synonyms created by using the CREATE SYNONYM statement cannot be exported.

  • OceanBase Database V2.2.7x in MySQL mode does not allow you to export columns that store index data. For example, columns stored in STORING(COLUMN_LIST) cannot be exported.

  • In the current and earlier versions, the ALL_SOURCE view lacks the TYPE-related information. OBDUMPER

  • On the Windows operating system, the name of a database object cannot contain the following characters: \ / : * ? " < > |. Otherwise, the file cannot be exported.

  • On the Windows operating system, the exclamation point (!) cannot be used as a delimiter.

  • Data in the interval day(2) to second(0) format cannot be exported. Example: '0 5:0:0.000000'.

Limited mode

Note

This mode applies to only services deployed on Alibaba Cloud.

  • OBDUMPER provides a limited mode. You can export data in limited mode by specifying the --public-cloud option. In limited mode, OBDUMPER does not require the permissions of users under the system tenant. Therefore, you do not need to specify the --sys-user or the --sys-password option.

  • If you do not use the limited mode, OBDUMPER still requires the permissions of the root and proxyro user under the sys tenant. The root user is the default user.

  • If you specify the --public-cloud option to export data in limited mode, you can export only data in tables.

  • If you specify the --public-cloud option to export data in limited mode, you can export schema definitions of only TABLE and VIEW objects. Schemas of TABLE objects do not contain index definitions. The exported table schemas are incomplete because they lack index information. The performance of data export in limited mode is much lower than that in regular mode.

  • If you specify the --public-cloud option to use Alibaba Cloud services in limited mode, you do not need to specify the -t or -c option.

Usage notes

This section describes how to use the undo_retention parameter.

The default value of this parameter is 0, in seconds. Assume that t1 is the point in time when an undo operation was performed and t2 equals t1 plus 900 seconds. You can query data generated within the time period specified by the [t1,t2] range at t2. After you set the undo_retention parameter, the current session only takes effect on the data that is generated after t1. Sample statement of setting the undo_retention parameter:

SET global undo_retention=900;
  • You can obtain the effective SCN of OceanBase Database by querying the v$ob_timestamp_service view under the sys tenant.

  • If you query data at a specified point in time, the data after the last major compaction is returned. For example, if you started major compaction in the cluster at t1, the earliest data that you can query is the data at t1.

  • If the table that you want to query has been deleted and is in the recycle bin, you must restore it from the recycle bin.

  • Flashback queries may fail in the case of minor compaction. If minor compaction occurs and the undo_retention parameter is not set, you cannot perform flashback queries. After the undo_retention parameter is set, you can query data within the time range of [t1, t1 + undo_retention], where t1 is the point in time when minor compaction occurs.

Previous topic

FAQ
Last

Next topic

Environmental Preparation
Next
What is on this page
What is OBDUMPER?
Features
Supported OceanBase Database versions
Usage notes
Limited mode
Usage notes