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

V4.1.0Community Edition

  • Document Overview
  • Product Introduction
  • Preparations
    • Prepare the environment
    • Download OBLOADER
  • User Guide (OBLOADER)
    • Overview
    • Command-line options
    • Data processing
      • Define control files
      • Preprocessing functions
      • Case expressions
    • Performance tuning
    • Scenarios and examples
    • FAQ
  • User Guide (OBDUMPER)
    • Overview
    • Command-line options
    • Data processing
      • Define control files
      • Preprocessing functions
      • Case expressions
    • Performance tuning
    • Scenarios and examples
    • FAQ

Download PDF

Document Overview Product Introduction Prepare the environment Download OBLOADER OverviewCommand-line optionsDefine control files Preprocessing functions Case expressionsPerformance tuning Scenarios and examples FAQ OverviewCommand-line optionsDefine control files Preprocessing functions Case expressions Performance tuning Scenarios and examples FAQ
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 Loader and Dumper
  3. V4.1.0
iconOceanBase Loader and Dumper
V 4.1.0Community Edition
  • 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 06:25:24  Updated
share
What is on this page
Features
Usage notes
Limited mode

folded

share

Features

OBLOADER mainly provides the following features:

  • Allows you to import the DDL statements of database objects.

  • Allows you to import data files in the standard CSV or SQL format.

  • Allows you to import files where data is stored with a fixed length in bytes, files where data is split by a string, and files that store a mix of DDL and DML statements.

  • Allows you to configure rules that control data preprocessing and field mappings between files and tables for data import.

  • Supports features such as import speed limiting, memory explosion prevention, resumption after an interruption, and automatic retries.

  • Allows you to specify a log directory and store bad data and conflict data.

  • Allows you to import data from Object Storage Service (OSS) to OceanBase Database.

  • A generated column can be imported and used as a partitioning key.

  • A confirmation step is added for you to confirm risky operations such as TRUNCATE TABLE during a full database import.

  • The -Dfile.split parameter is added. By default, the parameter is set to UNSAFE in the script for coarse-grained splitting of files. You can set it to SAFE for fine-grained splitting of files.

Usage notes

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

  • You need to modify the virtual machine (VM) memory parameter in the script when you try to import 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. If table names are case-sensitive, enclose them in brackets ([ ]). For example, --table '[test]' indicates the table named test, and the file name is in the format of test.group.sequence.suffix. --table '[TEST]' indicates the table named TEST, and the file name is in the format of TEST.group.sequence.suffix.

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

  • If a database object have dependencies on others, object definitions and data may not be imported in dependency order.

  • Tables without primary keys do not support import resumption after an interruption or data substitution.

  • When you resolve the primary key conflict in OceanBase Database 1.4.79 in MySQL mode, the use of the INSERT ... WHERE NOT EXISTS statement may result in cross-partition insertion errors.

  • In OceanBase Database 1.4.x in MySQL mode, the metadata of the RANGE COLUMNS-KEY composite partitioned table is defective in the virtual routing view.

  • When you use OBLOADER to import data to a table that has a generated column as a partitioning key, the data file must contain the data of the generated column. Otherwise, use the limited mode (enabled by using the --public-cloud option) to import data.

  • The --logical-database option is used to import and export logical databases by using OceanBase Database Proxy (ODP) (Sharding). At present, restricted by the features of ODP (Sharding), a schema exported by OBDUMPER is a random physical schema in database and table shards. Therefore, you cannot use OBLOADER to directly import the schema to a logical database. You need to manually modify the schema.

  • OBLOADER supports the following file formats:

    • DDL: A file in the DDL format contains only DDL statements.
    • CSV: A file in the standard CSV format contains content that complies with the RFC 4180 specification.
    • SQL: A file in the SQL format contains only INSERT SQL statements. Each statement occupies one line without line breaks.
    • MIX: A file in the MIX format contains both DDL statements and DML statements.
    • POS: A file in the POS format stores data with a fixed length in bytes.
    • CUT: A file in the CUT format contains string-delimited data, which differs from the CSV format.

Limited mode

Note
The limited mode is applicable only to scenarios where you cannot directly specify the --sys-user or --sys-password option.
The limited mode enabled by using the --no-sys option is applicable to private cloud environments without sys tenant passwords. The limited mode enabled by using the --public-cloud option is applicable to public cloud environments without sys tenant passwords.

  • When you import data from OceanBase clusters deployed in a public cloud in limited mode (enabled by using the --public-cloud option), you do not need to specify the -t and -c connection options. When you import data from OceanBase clusters deployed in a private cloud in limited mode (enabled by using the --no-sysoption), you need to specify the -t connection option, and additionally the -c option if you connect to the ODP service. If you do not enable the limited mode, the --sys-user and --sys-password options must be specified for OBLOADER.

  • The limited mode does not support all features of OBLOADER. The performance and stability are therefore affected in limited mode. OceanBase Database 2.2.30 and later versions support throttling on the server. Therefore, to ensure the stability of data import in limited mode, you can run the following command to modify throttling thresholds on the server:

    alter system set freeze_trigger_percentage=50;
    alter system set minor_merge_concurrence=64;
    alter system set writing_throttling_trigger_percentage=80 tenant='xxx';
    

Previous topic

Download OBLOADER
Last

Next topic

Command-line options
Next
What is on this page
Features
Usage notes
Limited mode