OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
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

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
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 Cloud

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    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 Cloud
    iconOceanBase Cloud
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET

      Supported file formats and encoding formats for Data Import

      Last Updated:2026-04-07 08:08:33  Updated
      Share
      What is on this page
      File encoding formats
      File formats
      CSV files
      INSERT SQL files
      Apache Parquet
      Apache ORC

      folded

      Share

      This document provides an overview of the file formats and encoding formats supported by Data Import in OceanBase Cloud. Through this document, you will learn how to prepare files that meet the requirements for smooth data import into OceanBase Cloud.

      File encoding formats

      Data Import in OceanBase Cloud supports these file encoding formats at present:

      • UTF8
      • UTF16
      • UTF32
      • ISO-8859-1
      • ASCII
      • GB2312
      • GBK
      • GB18030

      File formats

      Data Import in OceanBase Cloud supports these file formats at present:

      • CSV (RFC-4180)
      • INSERT SQL
      • Apache Parquet (currently only supported for OceanBase MySQL compatible mode)
      • Apache ORC (currently only supported for OceanBase MySQL compatible mode)

      You can use Data Import to import data from a single file into a single data table supported by OceanBase Cloud. For more information about the specific restrictions and requirements for each file format, see sections below.

      CSV files

      Data Import in OceanBase Cloud has these requirements for CSV files:

      • The data file must strictly adhere to the RFC 4180 specification. For more information, see the RFC 4180 specification.

        • Each record in the file occupying a single line.
        • The first record can contain field names.
        • Fields are separated by commas, and spaces around the commas are ignored.
        • Fields containing commas, newline characters, spaces, or double quotes must be enclosed in double quotes ("").
        • It only supports files with the .csv and .txt extensions.
      • It does not support binary data.

      • The CSV format supports uploading and importing files with a maximum size of 1GB, and supports importing files with a maximum size of 10GB from object storage.

      INSERT SQL files

      Data Import in OceanBase Cloud has these requirements for INSERT SQL files:

      • It only supports files with the .sql and .txt extensions.
      • The SQL format supports uploading and importing files with a maximum size of 1GB, and supports importing files with a maximum size of 10GB from object storage.
      • The file content should only contain INSERT ... VALUES statements.
      • It supports SQL content with a single table name.

      OceanBase Cloud will automatically identify the table name based on the SQL content. If the table does not exist, OceanBase Cloud will create a new table for importing. By default, OceanBase Cloud does not set a primary key. You can set one or more columns as the primary key. After setting the primary key, the field non-null constraint is set by default.

      Mode
      Field Content
      Constraint
      Field Type
      OBMySQL Numeric Default allow null int
      Non-numeric Default allow null varchar(N), N as character length
      OBOracle Numeric Default allow null NUMBER
      Non-numeric Default allow null varchar(N), N as character length

      Apache Parquet

      Data Import in OceanBase Cloud has these requirements for Apache Parquet files:

      • Supports importing a single Parquet file into a single table.
      • The Parquet format supports uploading and importing files with a maximum size of 1GB, and supports importing files with a maximum size of 10GB from object storage.

      Apache ORC

      Data Import in OceanBase Cloud has these requirements for Apache ORC files:

      • Supports importing a single ORC file into a single table.
      • The ORC format supports uploading and importing files with a maximum size of 1GB, and supports importing files with a maximum size of 10GB from object storage.

      Previous topic

      Direct load
      Last

      Next topic

      Sample data introduction
      Next
      What is on this page
      File encoding formats
      File formats
      CSV files
      INSERT SQL files
      Apache Parquet
      Apache ORC