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.0Enterprise Edition

  • Document Overview
  • What's New
  • Introduction
  • Preparations
    • Prepare the environment
    • Download OBLOADER
  • User Guide (OBLOADER)
    • OBLOADER overview
    • Command-line options
    • Data processing
      • Define control files
      • Preprocessing functions
      • Case expressions
    • Performance tuning
    • Scenarios and examples
    • FAQ
  • User Guide (OBDUMPER)
    • OBDUMPER overview
    • Command-line options
    • Data processing
      • Define control files
      • Preprocessing functions
      • Case expressions
    • Performance tuning
    • Scenarios and examples
    • FAQ
  • Release Note
    • Release Note
      • 4.x
        • OBLOADER \& OBDUMPER V4.1.0
        • OBLOADER \& OBDUMPER V4.0.0
      • 3.x
        • OBLOADER \& OBDUMPER V3.1.0
        • OBLOADER \& OBDUMPER V3.0.0
    • Version rules

Download PDF

Document Overview What's New Introduction Prepare the environment Download OBLOADER OBLOADER overviewCommand-line optionsDefine control filesPreprocessing functionsCase expressionsPerformance tuningScenarios and examplesFAQ OBDUMPER overview Command-line optionsDefine control filesPreprocessing functionsCase expressions Performance tuningScenarios and examplesFAQ Version rules
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.0Enterprise Edition
  • 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

Prepare the environment

Last Updated:2023-07-03 05:50:18  Updated
share
What is on this page
Operating environment configurations
Privileges
OBLOADER
OBDUMPER

folded

share

Prepare the environment

Before you run OBLOADER & OBDUMPER, make sure that you have the appropriate operating environment and privileges.

Operating environment configurations

Configuration item Requirements
OS Linux, macOS, and Windows 7 or later
Java environment Install Oracle JDK 1.8, and configure the JAVA_HOME environment variable. We do not recommend that you use OpenJDK.
Character set We recommend that you use UTF-8 as the file character set.
Java virtual machine (JVM) parameters Modify the JVM memory parameter in the bin/obloader and bin/obdumper scripts to avoid JVM memory insufficiency.

Note
Due to serious garbage collection (GC) bugs in some versions of OpenJDK 1.8, an out of memory (OOM) error or a hang will occur when OBLOADER & OBDUMPER is running. Therefore, install the latest minor version of OpenJDK 1.8.

Privileges

OBLOADER

When you connect OBLOADER to OceanBase Database and use this tool to import data, you must have the following privileges:

  • The user account that you use to connect to OceanBase Database must have the privileges to execute the SELECT, INSERT, MERGE, and UPDATE statements. You can view the privileges granted to a user by using the SHOW GRANTS statement. Example:

    obclient> SHOW GRANTS FOR user1;
    +----------------------------------------+
    | Grants for user1@%                     |
    +----------------------------------------+
    | GRANT SELECT ON *.* TO 'user1'         |
    | GRANT INSERT ON `db1`.* TO 'user1'     |
    | GRANT MERGE ON `db1`.* TO 'user1'      |
    | GRANT UPDATE ON `db1`.* TO 'user1'     |
    | GRANT VIEW ON `db1`.* TO 'user1'       |
    +----------------------------------------+
    2 rows in set
    

    Note
    For more information, see View user privileges, Users and privileges, and Modify user privileges.

  • In versions earlier than OceanBase Database V4.0.0.0, you need to specify the --sys-user and --sys-password options on the command line of OBLOADER & OBDUMPER. For more information, see Scenarios and examples in the OBLOADER section.

    Notice
    The --sys-user and --sys-password options must be set to the username and password of a user with system table and view query privileges under the sys tenant.

OBDUMPER

When you connect OBDUMPER to OceanBase Database and use this tool to export data, you must have the following privileges:

  • The user account that you use to connect to OceanBase Database must have the privileges to execute the SELECT and SET statements. You can view the privileges granted to a user by using the SHOW GRANTS statement. Example:

    obclient> SHOW GRANTS FOR user1;
    +----------------------------------------+
    | Grants for user1@%                     |
    +----------------------------------------+
    | GRANT SELECT ON *.* TO 'user1'         |
    | GRANT SET ON `db1`.* TO 'user1'        |
    | GRANT VIEW ON `db1`.* TO 'user1'       |
    +----------------------------------------+
    2 rows in set
    

    Note
    For more information, see View user privileges, Users and privileges, Modify user privileges, and SET.

  • In versions earlier than OceanBase Database V4.0.0.0, you need to specify the --sys-user and --sys-password options on the command line of OBLOADER & OBDUMPER. For more information, see Scenarios and examples in the OBDUMPER section.

    Notice
    The --sys-user and --sys-password options must be set to the username and password of a user with system table and view query privileges under the sys tenant.

Previous topic

Introduction
Last

Next topic

Download OBLOADER
Next
What is on this page
Operating environment configurations
Privileges
OBLOADER
OBDUMPER