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

Connection configuration

Last Updated:2026-04-07 08:50:21  Updated
share
What is on this page
Configuration method
Configuration file parameters
References

folded

share

This topic describes how to view and configure the session variables supported by OceanBase Database and OceanBase Connector/J.

Configuration method

When you use OBLOADER & OBDUMPER to connect to a database, you can modify the connection configuration by configuring variables in the session.config.json file stored in the {ob-loader-dumper}/conf/ directory. session.config.json is a JSON configuration file readable to programs. It contains three types of configuration: SQL statements for connection initialization, URL options of OceanBase Connector/J, and high availability (HA) mode of OceanBase Connector/J. The following table describes the fixed tags in this JSON file.

Tag Value type Description Parent tag
init_sql map The SQL statements pre-executed to set session variables and system parameters after a database connection is established. -
oracle list A fixed sub-tag of init_sql. It applies only to Oracle compatible mode of OceanBase Database. init_sql
mysql list A fixed sub-tag of init_sql. It applies only to MySQL compatible mode of OceanBase Database. init_sql
jdbc_url_options map URL options of OceanBase Connector/J. -
jdbc_hamode string The HA mode of OceanBase Connector/J. For more information, see OceanBase Connector/J. -

You can view the session.config.json file in the {ob-loader-dumper}/conf directory. Here is a sample session.config.json file:

$cd /home/admin/obloaderobdumper/ob-loader-dumper-4.x.x-RELEASE/conf
$cat session.config.json

{
  "init_sql": {
    "oracle": [
      "set names utf8",
      "set autocommit=1",
      "set session ob_query_timeout=300000000",
      "set session ob_trx_timeout=180000000",
      "set session net_read_timeout=86400",
      "set session net_write_timeout=86400",
      "set session sql_select_limit=9223372036854775807",
      "alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS'",
      "alter session set nls_timestamp_format='YYYY-MM-DD HH24:MI:SS:FF9'",
      "alter session set nls_timestamp_tz_format='YYYY-MM-DD HH24:MI:SS.FF TZR TZD'"
    ],
    "mysql": [
      "set names utf8",
      "set autocommit=1",
      "set session ob_query_timeout=300000000",
      "set session ob_trx_timeout=180000000",
      "set session net_read_timeout=86400",
      "set session net_write_timeout=86400",
      "set session sql_select_limit=9223372036854775807",
      "set session sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE'"
    ]
  },
  "jdbc_url_options": {
    "characterEncoding": "utf8",
    "socketTimeout": 1800000,
    "connectTimeout": 1800000,
    "zeroDateTimeBehavior": "convertToNull",
    "useServerPrepStmts": true,
    "noDatetimeStringSync": true,
    "useCompression": true,
    "log": false,
    "allowMultiQueries": true,
    "useLocalSessionState": true,
    "cachePrepStmts": true,
    "useSqlStringCache": true
  },
  "jdbc_hamode": null
}

Configuration file parameters

  • The following table describes the parameters that are set by using the init_sql (initialization SQL statement) statement.

    Parameter Description Tenant type Default value
    names Specifies the character set. Oracle/MySQL UTF-8
    autocommit Specifies whether to enable the auto-commit mode. Oracle/MySQL 1
    ob_query_timeout Specifies the query timeout period in milliseconds. Oracle/MySQL 300000000
    ob_trx_timeout Specifies the transaction timeout period in milliseconds. Oracle/MySQL 180000000
    net_read_timeout Specifies the network read timeout period in seconds. Oracle/MySQL 86400
    net_write_timeout Specifies the network write timeout period in seconds. Oracle/MySQL 86400
    sql_select_limit Specifies the maximum number of rows returned by an SQL query. Oracle/MySQL 9223372036854775807
    nls_date_format Specifies the date format for the current session. Oracle YYYY-MM-DD HH24:MI:SS
    nls_timestamp_format Specifies the timestamp format for the current session. Oracle YYYY-MM-DD HH24:MI:SS:FF9
    nls_timestamp_tz_format Specifies the time zone and timestamp format for the current session. Oracle YYYY-MM-DD HH24:MI:SS.FF TZR TZD
  • The following table describes the parameters of the jdbc_url_options (JDBC connection URL).

    Parameter Description Tenant type Default value
    characterEncoding Specifies the character encoding. Oracle/MySQL UTF-8
    socketTimeout Specifies the socket timeout period in milliseconds. Oracle/MySQL 180000000
    connectTimeout Specifies the connection timeout period in milliseconds. Oracle/MySQL 180000000
    zeroDateTimeBehavior Specifies the behavior in handling zero datetime values. Oracle/MySQL convertToNull
    useServerPrepStmts Specifies whether to use server prepared statements. Oracle/MySQL true
    noDatetimeStringSync Specifies whether to disable synchronization of datetime strings. Oracle/MySQL true
    useCompression Specifies whether to enable compression. Oracle/MySQL true
    log Specifies whether to log. Oracle/MySQL false
    allowMultiQueries Specifies whether to allow multiple queries to be executed simultaneously. Oracle/MySQL true
    useLocalSessionState Specifies whether to use local session state. Oracle/MySQL true
    cachePrepStmts Specifies whether to cache prepared statements. Oracle/MySQL true
    useSqlStringCache Specifies whether to use an SQL string cache. Oracle/MySQL true
    extendOracleResultSetClass Specifies whether to extend the Oracle result set class. Oracle/MySQL true
    useSSL Specifies whether to use SSL. Oracle/MySQL true
    disableSslHostnameVerification Specifies whether to disable SSL host name verification. Oracle/MySQL true
    trustStore Specifies the path of the trust store file. Oracle/MySQL /truststore.jks
    trustStorePassword Specifies the password of the trust store. Oracle/MySQL -
    keyStore Specifies the path of the key store file. Oracle/MySQL -
    keyStorePassword Specifies the password of the key store. Oracle/MySQL -
    jdbc_hamode Specifies the JDBC HA mode. Oracle/MySQL -
  • The following table describes the parameters of the direct_path_load (direct load) statement.

    Parameter Description Tenant type Default value
    task_timeout_ms Specifies the task timeout period in milliseconds. Oracle/MySQL 2592000000
    heartbeat_timeout_ms Specifies the heartbeat timeout period in milliseconds. Oracle/MySQL 60000
    heartbeat_interval_ms Specifies the heartbeat interval in milliseconds. Oracle/MySQL 10000

References

  • Command-line options

  • Command-line options

Previous topic

Security Features
Last

Next topic

Self-service Troubleshooting
Next
What is on this page
Configuration method
Configuration file parameters
References