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 Developer Center

V4.1.3Enterprise Edition

  • Document Overview
  • Overview
    • What is ODC?
    • Benefits
    • Architecture
    • Features
    • Limits
  • Quick Start
    • Overview
    • Install ODC
    • Log on to ODC with an account
    • Create a private connection
  • Tutorials
    • Tips on the SQL Console
    • Create a connection
    • Export data
    • Import data
    • Debug a stored procedure
    • View the performance of an SQL statement
  • User Guide (Web ODC)
    • ODC homepage
    • Recycle bin
    • View operation records
    • Session management
    • Help center
    • Task management
      • Overview
      • Import tasks
      • Export tasks
      • Data mocking tasks
      • Database change tasks
      • Partitioning plan task
      • Permission application tasks
      • Shadow table synchronization tasks
      • SQL plan task
    • Use the workspace
      • Overview
      • SQL window
      • Anonymous block window
      • Command-line window
      • Stored scripts
      • Snippet
    • Public resource management
      • Overview
      • Quick start
      • Resource permissions
        • Manage public connections
        • Manage resource groups
        • Manage roles
        • Manage users
        • Automatic authorization rules
      • Task process management
      • Manage operation records
      • Data desensitization management
      • System settings
    • Database objects
      • View objects
        • Overview
        • Create a view
        • Manage views
      • Table objects
        • Overview
        • Create a table
        • Table list
        • Manage table attributes
        • Manage table data
      • Trigger objects
        • Overview
        • Create a trigger
        • Manage triggers
      • Sequence objects
        • Overview
        • Create a sequence
        • Manage sequences
      • Package objects
        • Overview
        • Create a program package
        • Manage program packages
      • Synonym objects
        • Overview
        • Create a synonym
        • Manage synonyms
      • Function objects
        • Overview
        • Create a function
        • Manage functions
      • Type objects
        • Overview
        • Create a type
        • Manage types
      • Stored procedure objects
        • Overview
        • Create a stored procedure
        • Manage stored procedures
    • Connect to a database
      • Create a private connection
      • Manage private connections
    • Log on to ODC
      • Log on to ODC with an account
      • Change the password
    • Use tools
      • Shadow table synchronization
      • SQL plan
      • Data mocking
      • Partitioning plan
      • Database changes
      • Data export and import
        • Overview
        • Export and import formats
        • Batch export and import
        • Single table export and import
  • User Guide (Client ODC)
    • Install ODC
    • ODC homepage
    • Connect to a database
      • Create a private connection
      • Manage connections
    • Use the workspace
      • Overview
      • SQL window
      • Anonymous block window
      • Command-line window
      • Stored scripts
      • Snippet
    • Use tools
      • Data export and import
        • Overview
        • Export and import formats
        • Batch export and import
        • Single table export and import
      • Data mocking
      • Asynchronous execution
      • Shadow table synchronization
    • Recycle bin
    • View operation records
    • Task management
      • Overview
      • Import tasks
      • Export tasks
      • Data mocking tasks
      • Database Change
      • Shadow table synchronization tasks
    • Session management
    • Database objects
      • Package objects
        • Overview
        • Create a program package
        • Manage program packages
      • Stored procedure objects
        • Overview
        • Create a stored procedure
        • Manage stored procedures
      • View objects
        • Overview
        • Create a view
        • Manage views
      • Table objects
        • Overview
        • Create a table
        • Table list
        • Manage table attributes
        • Manage table data
      • Type objects
        • Overview
        • Create a type
        • Manage types
      • Sequence objects
        • Overview
        • Create a sequence
        • Manage sequences
      • Function objects
        • Overview
        • Create a function
        • Manage functions
      • Synonym objects
        • Overview
        • Create a synonym
        • Manage synonyms
      • Trigger objects
        • Overview
        • Create a trigger
        • Manage triggers
    • Help center
  • Deployment Guide
    • Deployment overview
    • Preparations before deployment
    • Deployment verification
    • Deploy ODC in high availability mode
      • Deployment process
      • Load and run an ODC image
      • Deploy SSL certificate
      • Deploy the NGINX proxy
      • Configure certificate trust
    • Deploy a single ODC node
      • Deployment process
      • Load and run an ODC image
  • Upgrade Guide
    • Overview
    • Preparations before upgrade
    • Upgrade single-node ODC
      • Upgrade process
      • Stop ODC of the earlier version
      • Load and run an ODC image
    • Upgrade high-availability
      • Upgrade process
      • Stop ODC of the earlier version
      • Load and run an ODC image
      • Upgrade NGINX image
    • Upgrade verification
    • Rollback after upgrade failed
  • FAQ
  • Release Note
    • V4.1
      • ODC V4.1.2
      • ODC V4.1.1
      • ODC V4.1.0
      • ODC V4.1.3
    • V3.3
      • ODC V3.3.3
      • ODC V3.3.2
      • ODC V3.3.1
      • ODC V3.3.0
    • V3.2
      • ODC V3.2.3
      • ODC V3.2.2
      • ODC V3.2.1
      • ODC V3.2.0
    • V3.4
      • ODC V3.4.0
    • V4.0
      • ODC V4.0.2
      • ODC V4.0.0

Download PDF

Document Overview What is ODC? Benefits Architecture Features Limits Overview Install ODC Log on to ODC with an account Create a private connection Tips on the SQL Console Create a connection Export data Import data Debug a stored procedure View the performance of an SQL statement ODC homepageRecycle bin View operation records Session management Help center Overview Import tasks Export tasksData mocking tasks Database change tasks Partitioning plan task Permission application tasks Shadow table synchronization tasks SQL plan taskOverview SQL windowAnonymous block window Command-line window Stored scripts Snippet Overview Quick start Task process managementManage operation records Data desensitization managementSystem settings Create a private connection Manage private connections Log on to ODC with an account Change the password Shadow table synchronization SQL planData mocking Partitioning planDatabase changes Install ODC ODC homepage Create a private connection Manage connections Overview SQL windowAnonymous block window Command-line window Stored scripts Snippet Data mocking Asynchronous execution Shadow table synchronizationRecycle bin View operation records Overview Import tasksExport tasks Data mocking tasks Database Change Shadow table synchronization tasksSession management Help center Deployment overview Preparations before deployment Deployment verificationDeployment process Load and run an ODC image Deploy SSL certificate Deploy the NGINX proxy Configure certificate trust Deployment process Load and run an ODC image Overview Preparations before upgrade Upgrade process Stop ODC of the earlier version Load and run an ODC image Upgrade process Stop ODC of the earlier version Load and run an ODC image Upgrade NGINX image Upgrade verification Rollback after upgrade failed FAQ ODC V4.1.2 ODC V4.1.1 ODC V4.1.0 ODC V4.1.3
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 Developer Center
  3. V4.1.3
iconOceanBase Developer Center
V 4.1.3Enterprise Edition
  • V 4.4.2
  • V 4.4.1
  • V 4.4.0
  • V 4.3.4
  • V 4.3.3
  • V 4.3.2
  • V 4.3.1
  • V 4.3.0
  • V 4.2.4
  • V 4.2.3
  • V 4.2.2
  • V 4.2.1
  • V 4.2.0
  • V 4.1.3 and earlier
Community Edition
  • V 4.1.0
  • V 4.0.0
  • V 3.3.2
  • V 3.2.2
Enterprise Edition
  • V 4.1.3
  • V 3.4.0

Data mocking

Last Updated:2026-04-13 07:40:37  Updated
share
What is on this page
share

OceanBase Developer Center (ODC) provides the data mocking feature. This feature can generate data based on field types in a table, to meet your requirement for a large amount of data during database performance tests or feature verification.

Image 171

Perform the following steps to generate data by using the data mocking feature:

  1. Go to the Mock Data panel.

    Log on to ODC, and click the name of the target connection to go to the corresponding database object management page. Click Tool in the navigation bar in the upper part of the page and select Mock Data from the drop-down list. The Mock Data panel appears.

  2. View Connection .

    The name of the database connection to which the task belongs is displayed under Connection.

  3. Specify Database .

    Select the database to be changed.

  4. Specify the table for generating data.

    In the Mock Data panel, select the table from the drop-down list under Table . The drop-down list displays all the tables in the current instance.

  5. Specify the amount of data to be generated.

    In the Mock Data panel, set Mock Data Volume to specify the desired number of data rows to be generated. The default value is 1000. The system can generate up to 1,000,000 rows of data. You can set the value to an integer between 1 and 1000000.

  6. Specify the batch size.

    In the Mock Data panel, set Batch Processing Size to specify the number of rows generated that trigger a COMMIT operation. The default value is 200. That is, a commit operation is performed once every 200 rows are generated. The maximum value supported is 500. You can set the value to an integer between 1 and 500.

  7. Specify whether to empty the table before inserting mock data into it.

    In the Mock Data panel, select Yes or No under Empty Table Before Inserting Mock Data to specify whether or not to empty the table before inserting mock data.

  8. Specify the data conflict handling mode.

    In the Mock Data panel, specify Data Conflict Handling Mode by selecting a mode from the drop-down list. ODC supports the following methods:

    • Ignore : This option is selected by default. The data conflicting with existing data is not inserted.

    • Overwrite : If a data conflict occurs, the original data is deleted, and the new data is inserted.

    • Terminate : If a data conflict occurs, the data mocking task is terminated.

  9. Set data generation rules.

    In the Mock Data panel, the Rule Settings table displays the fields in the table you selected in step 2 in the Field Name and Field Type columns. You can specify the data generation rules for the target fields in the Rule and Rule Details columns. The Rule column provides built-in rules based on the field type for you to choose from. The Rule Details column displays the detailed information for the rule that you selected. You can click the edit icon to edit the information.

  10. Submit the information to generate a data mocking task.

    Click the Submit button in the lower-right corner of the Mock Data panel to generate a data mocking task. You can view the task details in the Task Center panel. For more information, see Data mocking tasks .

Previous topic

Single table export and import
Last

Next topic

Partitioning plan
Next