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

Scenarios

Last Updated:2026-04-13 07:40:24  Updated
Share
What is on this page
Full export of schema objects
Full data export in SQL format
Full data export in CSV format
Export of structures and data in limited mode
Data export in CUT format
Deduplication during data export
Data export using a control file
Data export from specified table columns
Export of custom SQL queries
Customization of the name of the exported file

folded

Share

This topic describes some common scenarios that OBDUMBER supports and provides the corresponding use cases.

The following table provides information about the database used in the examples.

Database information
Example value
Cluster name Cluster A
OBProxy IP address xx.x.x.x
OBProxy port number 2883
Tenant name TenantA
Password of a user (with at least the real-only privilege) in the sys tenant **1*** (the password of the user **u***)
User account (with read and write privileges) in the business tenant **u***
Password of the user in the business tenant **1***
Schema name USERA

Full export of schema objects

Scenario description : Export the schema statements of all the objects in the USERA schema to the /home/admin/DUMP-1/ directory.

Example statement :

[admin@localhost]> ./obdumper -h xx.x.x.x -P 2883 -u **u*** -p **1*** --sys-password **1*** -c ClusterA -t tenantA -D USERA --ddl --all -f /Users/admin/DUMP-1/

Full data export in SQL format

Scenario description : Export data of all the objects in the USERA schema to the /home/admin/DUMP-1/ directory in the SQL format.

Example statement :

[admin@localhost]> ./obdumper -h xx.x.x.x -P 2883 -u **u*** -p **1*** --sys-password **1*** -c ClusterA -t tenantA -D USERA --sql --all -f /Users/admin/DUMP-1/

Full data export in CSV format

Scenario description : Export the structures and data of all the objects in the USERA schema to the /home/admin/DUMP-1/ directory in the CSV format.

Example statement :

[admin@localhost]> ./obdumper -h xx.x.x.x -P 2883 -u **u*** -p **1*** --sys-password **1*** -c ClusterA -t tenantA -D USERA --csv --all -f /Users/admin/DUMP-1/

Export of structures and data in limited mode

Scenario description : Export the structures and data of all the tables and views in the USERA schema to the /home/admin/DUMP-1/ directory in limited mode.

Example statement :

[admin@localhost]> ./obdumper -h xx.x.x.x -P 2883 -u **u*** -p **1***  -c ClusterA -t tenantA -D USERA --ddl --sql --public-cloud  --all -f  /Users/admin/DUMP-1/

Data export in CUT format

Scenario description : Export the data of test table in the test database in CUT format, specify the column separator for the exported data as '|@|', and truncate the column separator '|@|' at the end of the last column.

Example statement :

[admin@localhost]>./obdumper -h xx.x.x.x -P 2881 -u **u*** -t mysql -c xx -p **1*** -D test --table 'test' -f /home/admin --cut --column-splitter '|@|' --trail-delimtier

Deduplication during data export

Scenario description : Export the data of test table in the test database in CUT format, specify the column separator for the exported data as '|@|', and deduplicate record rows.

Example statement :

[admin@localhost]>./obdumper -h xx.x.x.x -P 2881 -u **u*** -t mysql -c xx -p **1*** -D test --table 'test' -f /home/admin --cut --column-splitter '|@|' --distinct

Data export using a control file

Scenario description : Use the control file in the /home/admin directory to export data from the test table of the test database in the CUT format, and specify the column separator for the exported data as '|@|'.

Example statement :

[admin@localhost]>./obdumper -h xx.x.x.x -P 2881 -u **u*** -t mysql -c xx -p **1*** -D test --table 'test' -f /home/admin --cut --column-splitter '|@|' --ctl-path '/home/admin'

The following example shows a rule defined in the control file:

lang=java
(
  c1 "lpadb(c1,20,'x')",
  c2 "rpadb(c2,20,'x')"
);

Data export from specified table columns

Scenario description: Export data of the dept table in the test database in the CUT format and use the --exclude-column-names parameter to specify the table columns whose data does not need to be exported.

Example statement :

./obdumper -h xx.x.x.x -P 2881 -u **u*** -t mysql -c xx -p **1*** -D test --table'dept' --cut --column-splitter '|@|' --exclude-column-names 'deptno' --public-cloud 

Export of custom SQL queries

Scenario description: Export the returned result sets of SQL statements defined in the --query-sql parameter in CUT format.

Example statement :

-- Export of single-table queries
./obdumper -h xx.x.x.x -P 2881 -u **u*** -t mysql -c xx -p **1*** -D test --cut --column-splitter '|@|' --query-sql 'select deptno,dname from dept where deptno<3000' --public-cloud

-- Export of multi-table queries
./obdumper -h xx.x.x.x -P 2881 -u **u*** -t mysql -c xx -p **1*** -D test --cut --column-splitter '|@|' --query-sql 'select * from dept,STUDENT where 1=1;' --public-cloud

Customization of the name of the exported file

Scenario description: Export data of the dept table in the test database in the CUT format, name the exported file as filetest, and save the file in the ./tmp0526/filetest directory.

Example statement :

./obdumper -h xx.x.x.x -P 2881 -u **u*** -t mysql -c xx -p **1*** -D test --cut --column-splitter '|@|' --table 'dept' --file-name 'filetest.txt' --public-cloud  -f ./tmp0526

Previous topic

Performance tuning
Last

Next topic

FAQ
Next
What is on this page
Full export of schema objects
Full data export in SQL format
Full data export in CSV format
Export of structures and data in limited mode
Data export in CUT format
Deduplication during data export
Data export using a control file
Data export from specified table columns
Export of custom SQL queries
Customization of the name of the exported file