OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Loader and Dumper

V4.2.7
  • Document Overview
  • Introduction
  • Preparations
    • Prepare the environment
    • Download OBLOADER & OBDUMPER
  • User Guide (OBLOADER)
    • Quick start
    • Command-line options
    • Data processing
      • Define control files
      • Preprocessing functions
      • Case expressions
    • Performance tuning
    • Error handling
    • Bypass import
    • FAQ
  • User Guide (OBDUMPER)
    • 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.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
    • Version rules

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Loader and Dumper
  3. V4.2.7

Bypass import

Last Updated:2026-09-04 08:19:57

Background information
Scenarios
Considerations
Command-line options for bypass import

Background information

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

Scenarios

The bypass import feature applies to the following scenarios:

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

  • Conventional extract, transform, and load (ETL): After data is extracted and transformed in the source, a large amount of data must be loaded to the destination within a short time. The bypass import technology can improve the import performance.

Data loading from text files or other data sources to OceanBase Database: Bypass import can accelerate the data loading process.

Considerations

  • In bypass import, the RPC port instead of the SQL port is required to transmit data.

  • Data to be imported is submitted at the table level instead of the session or transaction level.

  • Retry or resumable transmission is not supported.

  • Bit data types are not supported.

  • Virtual generated columns are not supported.

Command-line options for bypass import

Notice

OBLOADER can connect to an OBServer node or OceanBase Database Proxy (ODP) for bypass import. The version requirements are as follows:

  • OBServer node: V4.2.0 or later.
  • ODP: V4.1.3 while the OBServer node version must be V4.2.1 or later.

Option
Description
ApsaraDB for OceanBase & ODP
OceanBase Database & ODP
OceanBase Database & OBServer node
--direct Specifies to use bypass import. Required Required Required
--parallel The degree of parallelism (DOP) on the server. Optional Optional Optional
--rpc-port The inner RPC port of the server. You can obtain the RPC port as follows:
  • In the case of connection to the ODP server:
    • In ApsaraDB for OceanBase, the RPC port of the ODP server is 3307 by default.
    • In OceanBase Database, the RPC port of the ODP server is 2885 by default. You can change the port by using the -s option when you start ODP.
  • In the case of direct connection to an OBServer node, you can query the DBA_OB_SERVER system view in the sys tenant for the RPC port of the OBServer node, which is 2882 by default.
Required Required Required
-u(--user) The username that you use to log on to the database. Required Required Required
-P(--port) The SQL port number. Required Required Required
-t(--tenant) The tenant name of the cluster. Optional
If this option is not specified, partition calculation may be skipped.
Required Required
-c(--cluster) The cluster name of the database. Optional Required -
--public-cloud Indicates that the database environment is ApsaraDB for OceanBase. Required - -
--no-sys Specifies that the import does not rely on the sys tenant. This option applies only to OceanBase Database of a version earlier than V4.0.0. Optional Optional Optional
--sys-user The user on which the import relies in the sys tenant. If this option is not specified, the default value root takes effect. This option applies only to OceanBase Database of a version earlier than V4.0.0. Optional
This option is mutually exclusive with the --no-sys option.
Optional
This option is mutually exclusive with the --no-sys option.
Optional
This option is mutually exclusive with the --no-sys option.
--sys-password The password of the user on which the import relies on in the sys tenant. This option applies only to OceanBase Database of a version earlier than V4.0.0. Optional
This option is mutually exclusive with the --no-sys option.
Optional
This option is mutually exclusive with the --no-sys option.
Optional
This option is mutually exclusive with the --no-sys option.

Previous topic

Error handling
Last

Next topic

FAQ
Next
on this page
Background information
Scenarios
Considerations
Command-line options for bypass import