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.2.5Community Edition

  • Document Overview
  • Introduction
  • Preparations
    • Prepare the environment
    • Download OBLOADER & OBDUMPER
  • Import data
    • Quick start
    • Command-line options
    • Data processing
      • Define control files
      • Preprocessing functions
      • Case expressions
    • Performance tuning
    • Error handling
    • FAQ
  • Export data
    • Quick start
    • Command-line options
    • Data processing
      • Define control files
      • Preprocessing functions
      • Case expressions
    • Performance tuning
    • FAQ
  • Security features
  • Connection settings
  • Self-service troubleshooting
  • Release Note
    • Release Note
      • 4.x
        • OBLOADER & OBDUMPER V4.2.5
        • OBLOADER & OBDUMPER V4.2.4
        • OBLOADER & OBDUMPER V4.2.1
        • 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 Introduction Prepare the environment Download OBLOADER & OBDUMPER Quick startCommand-line optionsDefine control filesPreprocessing functionsCase expressionsPerformance tuning Error handlingFAQ Quick start Command-line optionsDefine control filesPreprocessing functionsCase expressions Performance tuningFAQ Security features Connection settings Self-service troubleshooting 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.2.5
iconOceanBase Loader and Dumper
V 4.2.5Community 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

FAQ

Last Updated:2026-04-13 06:25:29  Updated
share
What is on this page
share

Q: How do I solve an out of memory (OOM) error when I use OBLOADER to import data?

A: First, modify the memory parameter for the Java virtual machine (JVM) in the bin/obloader script. Then, check whether an OpenJDK garbage collection (GC) bug occurs.


Q: How do I run OBLOADER in debugging mode for troubleshooting?

A: You can directly run the bin/obloader-debug script.


Q: How do I use OBLOADER to import a data file whose name is different from the table?

A: Set the command-line option -f to the absolute path of the data file, for example, --table 'test' -f '/output/hello.csv'.


Q: Why does the control file configured for a table fail to take effect when I import data to the table?

A: The name of the control file must be identical to the table name. By default, table names are in lowercase in MySQL mode and in uppercase in Oracle mode.


Q: Why are command-line options not parsed as expected when I run the OBLOADER script?

A: This issue may occur if command-line option values contain special characters. For example, if you run OBLOADER or OBDUMPER on a Linux operating system, a greater-than sign (>) in the password may cause the loss of all operational logs. The greater-than sign (>) is a redirection operator. Therefore, you must use appropriate quotation marks to resolve this issue on different OS platforms. For more information, see the next question.


Q: When do I need to enclose options in single quotation marks (' ') or double quotation marks (" ") when I run the OBLOADER script?

A: We recommend that you enclose option values in the string format in quotation marks.

  • On the Windows OS, use double quotation marks (" "), for example, --table "*".
  • On a Linux-like OS, use single quotation marks (' '), for example, --table '*'.

Q: What do I do if external files fail to be imported due to invalid file formats?

A: OBLOADER has the following format requirements for an external file to be imported:

  • An SQL file can contain only INSERT statements but not comments or SET statements. Each INSERT statement occupies one line without line breaks. If the file contains DDL or DML statements, we recommend that you run the MySQL source command to import it.

  • A CSV file must meet the specifications of the standard. The file must be configured with an escape character, delimiter, column separator, and row separator. If data in the file contains any delimiter, the escape character must be specified.

    Q: How do I customize the log file names for an import task? A: You can customize the log file names in the {ob-loader-dumper}/conf/log4j2.xml file. As shown in the following figure, you can modify the following names in the Routing tag:

    • ob-loader-dumper.info for INFO logs in InfoRoutingAppender
    • ob-loader-dumper.warn for WARN logs in WarnRoutingAppender
    • ob-loader-dumper.error for ERROR logs in ErrorRoutingAppender

      Note

      If you modify ob-loader-dumper.info, ob-loader-dumper.warn, and ob-loader-dumper.error to the same name, all logs are generated in the same file.

    logs


    Q: What do I do if the following error is reported when I start OBLOADER: Access denied for user 'root'@'xxx.xxx.xxx.xxx'?

A: By default, OBLOADER requires the privileges of the root@sys user. If you have set a password for the root@sys user in the cluster, specify the password in the --sys-password option in the command.


Q: What do I do if one of the following errors is reported when OBLOADER is running: Over tenant memory limits and No memory or reach tenant memory limit?

A: Increase the memory ratio for the global SQL workarea or reduce the concurrency specified by --thread.

set global ob_sql_work_area_percentage=30; -- Default 5



Q: What do I do if OBLOADER returns the Bad Record error when I import CSV files and the data is split by a line break in the memory?

A: By default, OBLOADER uses the UNSAFE mode to split files. In this case, you must modify related JVM environment variables in the script. Open the obloader file in the {ob-loader-dumper}/bin/ directory. Find the PROG_OPTS keyword and change Dfile.split=UNSAFE to -Dfile.split=SAFE.



Q: What do I do if OBLOADER returns the following error during running: No tables are exists in the schema: "xxx"?

A: The table names specified in the --table 't1,t2' option must be identical to those defined in the database. By default, table names are in lowercase in MySQL mode of OceanBase Database, and in uppercase in Oracle mode of OceanBase Database. To specify a lowercase table name in Oracle mode, you must enclose the table name in brackets ([ ]), for example, --table '[t1]'.


Q: What do I do if the following error is reported when OBLOADER is running: The xxx files are not found in the path: "xxx"?

A: The name of the data file in the directory specified by the -f option must be identical to the table name. By default, table names are in lowercase in MySQL mode of OceanBase Database, and in uppercase in Oracle mode of OceanBase Database. For example, if you specify --table 't1', the data file in the directory must be named t1 in a supported format, such as t1.csv and t1.sql. Other file names such as T1.csv are invalid.


Q: What do I do if the following error is reported when OBLOADER is running: The manifest file: "xxx" is missing?

A:MANIFEST.bin is a metadata file that is generated when you export data by using OBDUMPER. If you use other tools to export data, no metadata file is generated. You can specify the --external-data option to skip the check of metadata files.


Q: What do I do if the following error is reported when I use OBLOADER to import a delimited text file: Index: 0, Size: 0?

A: This error occurs if the data file contains carriage returns or line feeds. You must run a script to delete the carriage returns or line feeds from the data file before you import it.


Q: What do I do if the error socket was closed by server is reported on OBLOADER and an OOM error is returned for OceanBase Database Proxy (ODP) when I import data of a KEY-partitioned table to OceanBase Database in MySQL mode by using ODP (Sharding)?

A: Set the privilege of the proxy_mem_limited parameter and check for external dependencies. The default memory limit for ODP is 2 GB. When you import data by using ODP (Sharding) and OBLOADER, you must use the root@proxysys account. Use the following statement to modify the memory limit of the logical database:

ALTER proxyconfig SET proxy_mem_limited = xxg

Previous topic

Error handling
Last

Next topic

Quick start
Next