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

  • Document Overview
  • Introduction
  • Technical Mechanism
  • Preparations
    • Prepare the environment
    • Prepare data
    • Download OBLOADER & OBDUMPER
    • Startup parameters
  • User Guide (OBLOADER)
    • Quick start
    • Command-line options
    • Direct load
    • Data processing
      • Define a control file
      • Preprocessing functions
      • Case expressions
    • Use cases of command-line options
    • Performance tuning
    • Error handling
    • FAQ
  • User Guide (OBDUMPER)
    • Quick start
    • Command-line options
    • Data processing
      • Define a control file
      • Preprocessing functions
      • Case expressions
    • Performance tuning
    • FAQ
  • Security Features
  • Connection configuration
  • Self-service Troubleshooting
  • Release Note
    • Release Note
      • 4.x
        • OBLOADER & OBDUMPER V4.3.4.1
        • OBLOADER & OBDUMPER V4.3.4
        • OBLOADER & OBDUMPER V4.3.3.1
        • OBLOADER & OBDUMPER V4.3.3
        • OBLOADER & OBDUMPER V4.3.2.1
        • OBLOADER & OBDUMPER V4.3.2
        • OBLOADER & OBDUMPER V4.3.1.1
        • OBLOADER & OBDUMPER V4.3.1
        • OBLOADER & OBDUMPER V4.3.0
        • OBLOADER & OBDUMPER V4.2.8.2
        • OBLOADER & OBDUMPER V4.2.8.1
        • OBLOADER & OBDUMPER V4.2.8
        • OBLOADER & OBDUMPER V4.2.7
        • OBLOADER & OBDUMPER V4.2.6
        • 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
    • Versioning rules

Download PDF

Document Overview Introduction Technical Mechanism Prepare the environment Prepare data Download OBLOADER & OBDUMPER Startup parameters Quick start Command-line options Direct load Define a control file Preprocessing functions Case expressions Use cases of command-line options Performance tuning Error handling FAQ Quick start Command-line options Define a control file Preprocessing functions Case expressions Performance tuning FAQ Security Features Connection configuration Self-service Troubleshooting Versioning 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.3.4.1
iconOceanBase Loader and Dumper
V 4.3.4.1
  • 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

Direct load

Last Updated:2026-04-07 08:50:21  Updated
share
What is on this page
Background information
Scenarios
Considerations
Command-line options for the direct load mode
Parameters of the direct load mode
--rpc-port

folded

share

Background information

OceanBase Database allows you to insert data into a database by using direct load. In other words, OceanBase Database can directly write data into data files. With the direct load feature, you can bypass SQL layer interfaces, directly allocate space and insert data into data files, thereby improving the data import efficiency.

Scenarios

The direct load feature applies to the following scenarios:

  • Data migration and synchronization. In data migration and synchronization, a large amount of data of different types need to be migrated from different data sources to OceanBase Database. Conventional SQL interfaces cannot meet the requirement on timeliness.

  • Conventional ETL. After data is extracted and transformed in the source, a large amount of data often needs to be loaded to the destination within a short time. The direct load technology can improve the import performance.

When you load data from text files or other data sources to OceanBase Database by using the direct load technology, the data loading efficiency can be improved.

Considerations

  • Direct write requires data transmission to be performed through the RPC port, which is not the SQL protocol port.

  • Direct write is performed on a table basis, and is not session-based or transaction-based.

  • Retries and resumption of interrupted transfers are not supported.

  • Data of the bit type is not supported.

  • Virtual generated columns are not supported.

  • The direct load feature is not recommended for small-scale import tasks.

  • The direct load feature does not support importing multiple tables at the same time.

  • If you specify the --replace-data option, unique index conflicts still cannot be resolved.

  • The --thread and --parallel options have different meanings:

    • The --thread option specifies the size of the connection pool from the client to the server. The connection pool is maintained by the client.

    • The --parallel option specifies the number of worker threads that an OBServer node can use to write data and perform sorting.

    • We recommend that you set the values of the --thread and --parallel options to the same value.

Command-line options for the direct load mode

Notice

In OBLOADER direct load mode, OBLOADER connects to OBServer nodes and ODP. The version requirements are as follows:

  • When OBLOADER connects to OBServer nodes: The OBServer nodes must be V4.2.1.7 or later in the V4.2.1.x series, V4.2.4.x to V4.3.0.x, or V4.3.0.1 or later in the V4.3.x series..
  • When OBLOADER connects to ODP: ODP V4.3.0 or later and OBServer nodes V4.2.1 or later are required.

Command-line option Description OceanBase Database & ODP OceanBase Database & OBServer
--direct Specifies to use direct load. Required Required Required
--parallel The concurrency of the server. The default value is 1, which is recommended to be consistent with the CPU specifications of the tenant.
We recommend that you specify this option to ensure stable performance.
Optional Optional Optional
--rpc-port The RPC port of the server. The method for obtaining the port varies depending on the scenario. For more information, see the following --rpc-port section. Required Required Required
-u(--user) The username of the database.

Notice

If the target database is in the Oracle compatible mode, the username must be in uppercase.

Required Required Required
-P(--port) SQL port number. Required Required Required
-c(--cluster) The name of the cluster. Optional Required -
-t(--tenant) The name of the tenant to connect to OceanBase Database.

Notice

When you use direct load to import data from OceanBase Cloud, you must specify this option together with --public-cloud -t <tenant>.

Required Required -
--public-cloud Specifies whether to import database objects or table data from an OceanBase cluster deployed in OceanBase Cloud.

Notice

When you use direct load to import data from OceanBase Cloud, you must specify this option together with --public-cloud -t <tenant>.

Required - -
--no-sys Specifies not to rely on the sys tenant. This option is supported only in OceanBase Database versions earlier than V4.0.0. Optional Optional Optional
--sys-user The username of the user who depends on the sys tenant. If you do not specify this option, root is used by default. This option is supported only in OceanBase Database versions earlier than V4.0.0. Optional
Exclusive with --no-sys.
Optional
Exclusive with --no-sys.
Optional
Exclusive with --no-sys.
--sys-password The password for the sys tenant. This option is supported only in OceanBase Database versions earlier than V4.0.0. Optional
Exclusive with --no-sys
Optional
Exclusive with --no-sys
Optional
Exclusive with --no-sys

Parameters of the direct load mode

You can configure the parameters of direct load in the session.config.json file in the {ob-loader-dumper}/conf directory.

Example:

"direct_path_load": {
    "task_timeout_ms": "25920000", 
    "heartbeat_timeout_ms": "60000000",
    "heartbeat_interval_ms": "30000000" 
}
  • task_timeout_ms: the timeout period for the task. If the task is not completed within the specified period, it is considered a timeout. The value is in milliseconds.

  • heartbeat_timeout_ms: specifies the heartbeat timeout period in milliseconds. This parameter is used to detect the activity of the import operation.

  • heartbeat_interval_ms: specifies the interval between two heartbeats.

--rpc-port

Private deployment

In private deployment scenarios, OBLOADER in direct load mode supports connecting to OBServer and ODP.

  • Connect to OBServer

    When OBLOADER is in direct load mode and connects to OBServer, the default port is 2882. You can use the sys tenant user to connect to the database and query the system view DBA_OB_SERVERS to obtain the RPC port SVR_PORT.

    obclient [information_schema]> select * from oceanbase.DBA_OB_SERVERS \G;
    *************************** 1. row ***************************
                  SVR_IP: 127.0.0.1
                SVR_PORT: 2882
                      ID: 1
                    ZONE: zone1
                SQL_PORT: 2881
          WITH_ROOTSERVER: YES
                  STATUS: ACTIVE
      START_SERVICE_TIME: 2025-05-16 16:39:12.412141
                STOP_TIME: NULL
    BLOCK_MIGRATE_IN_TIME: NULL
              CREATE_TIME: 2025-05-16 16:35:52.066722
              MODIFY_TIME: 2025-05-16 16:39:14.436893
            BUILD_VERSION: 4.3.5.2_102000162025051417-b3faexxxx(May 14 2025 18:01:25)
        LAST_OFFLINE_TIME: NULL
    1 row in set (0.001 sec)
    
  • Connect to ODP

    When OBLOADER is in direct load mode and connects to ODP, the default port is 2885. You can use the sys tenant user to connect to the database and view the RPC port value.

    obclient [information_schema]> show proxyconfig like "%rpc_listen_port%";
    +-----------------+-------+---------------------------------+-------------+---------------+--------------+--------------+
    | name            | value | info                            | need_reboot | visible_level | range        | config_level |
    +-----------------+-------+---------------------------------+-------------+---------------+--------------+--------------+
    | rpc_listen_port | 2885  | obproxy rpc service listen port | true        | SYS           | (1024,65536) | LEVEL_GLOBAL |
    +-----------------+-------+---------------------------------+-------------+---------------+--------------+--------------+
    1 row in set (0.003 sec)
    

ApsaraDB for OceanBase/OceanBase Cloud

If you are using ApsaraDB for OceanBase or OceanBase Cloud, you need to enable Bypass Import Port on the Database Proxy page. The default port is 3307.

  • For ApsaraDB for OceanBase, see Direct load for more information.

  • For OceanBase Cloud, see Bypass import for more information.

Previous topic

Command-line options
Last

Next topic

Define a control file
Next
What is on this page
Background information
Scenarios
Considerations
Command-line options for the direct load mode
Parameters of the direct load mode
--rpc-port