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

V4.2.2
  • Overview
    • What is ODC?
    • Features
    • Architecture
    • Limitations
    • ODC console
  • Quick Start
    • Client ODC
      • Overview
      • Install Client ODC
      • Use Client ODC
    • Web ODC
      • Overview
      • Deploy Web ODC
      • Use Web ODC
  • Data Source Management
    • Create a data source
    • Data sources and project collaboration
    • Database O&M
      • Session management
      • Global variable management
      • Recycle bin management
  • SQL Development
    • Write and execute SQL statements
    • Perform PL compilation and debugging
    • Use the command-line window
    • Edit and export the result set of an SQL statement
    • Analyze SQL statements
    • Generate test data
    • Database objects
      • Table objects
        • Overview
        • Create a table
        • Table list
        • Manage table attributes
        • Manage table data
      • View objects
        • Overview
        • Create a view
        • Manage views
      • Function objects
        • Overview
        • Create a function
        • Manage functions
      • Stored procedure objects
        • Overview
        • Create a stored procedure
        • Manage stored procedures
      • Sequence objects
        • Overview
        • Create a sequence
        • Manage sequences
      • Package objects
        • Overview
        • Create a program package
        • Manage program packages
      • Trigger objects
        • Overview
        • Create a trigger
        • Manage triggers
      • Type objects
        • Overview
        • Create a type
        • Manage types
      • Synonym objects
        • Overview
        • Create a synonym
        • Manage synonyms
  • Import and Export
    • Import schemas and data
    • Export schemas and data
  • Database Change Management
    • User Permission Management
      • Users and roles
      • Automatic authorization
    • Collaborative project management
    • Risk levels, risk identification rules, and approval processes
    • SQL check specifications
    • SQL window specification
    • Database change management
    • Lock-free schema changes
    • Synchronize shadow tables
  • Data Lifecycle Management
    • Archive data
    • Clean up data
    • Manage partitions
    • SQL plan task
  • Data Desensitization and Auditing
    • Desensitize data
    • Operation audit
  • System Integration
    • SSO integration
    • Approval integration
    • SQL approval integration
  • Deployment Guide
    • Overview
    • Preparations before deployment
    • Deploy ODC on a single node
    • Deploy ODC in high-availability mode
    • Deployment verification
  • Upgrade Guide
    • Overview
    • Preparations before upgrade
    • Upgrade single-node ODC
    • Upgrade high-availability ODC
    • Upgrade verification
    • Rollback after upgrade failed
  • Troubleshooting
    • ODC troubleshooting process
    • Collect Message
      • View the runtime environment and version information
      • View web ODC logs
      • View client ODC logs
      • View end-to-end ODC-related logs
      • View ODC MetaDB data
      • Query the index status in OceanBase Database V4.x
      • Query the index status in OceanBase Database V1.4.x to V3.2.x
      • Collect JVM runtime information
      • Use tcpdump to capture packets
    • Common Troubleshooting
      • Deployment Upgrade
        • Web ODC cannot be accessed after startup
      • Database Connection
        • Access denied in a connection trial or test
        • Connection is refused in a connection trial or test
        • Connection times out
        • `Connection reset` is reported for a time-consuming statement
        • `socket write error` or `closed by server` is reported for a connection
      • SQL Execution
        • Disconnection during SQL execution
        • `Over tenant memory limits` is reported during SQL execution
        • `Unknown thread id` is returned during SQL execution
        • `timeout` errors returned during SQL execution
        • `OutOfMemoryError` is returned during SQL execution
        • Incomplete result columns for the SELECT statement
        • Garbled Chinese characters in the SQL execution result set
        • Garbled Chinese data is returned for query of data in GBK encoding
      • PL Object
        • Debugging is not supported for invalid PL objects
        • `JSONException` is reported during PL debugging
        • Garbled variable values in debugging
        • Failed to view PL objects or garbled characters are returned
        • PL objects cannot be executed or an execution error is returned
        • ODC issues during PL debugging
        • PL anonymous block cannot be debugged
        • Alert information of a PL object is unavailable
      • Import and Export
        • Garbled Chinese characters in an imported file in GBK encoding
        • Invalid ZIP package reported during file import
        • Time-type data exported from an Oracle tenant cannot be imported
        • Mismatched columns reported during the import of a single-table CSV file
        • Failed to export a result set in ODC to an Excel file
        • Incorrect display in Excel for a result set exported in CSV format
        • Incomplete data in batch export of multiple tables
        • `javax.crypto.BadPaddingException: Given final block not properly padded` is returned for a data import or export failure
      • Client ODC Problems
        • Client ODC startup failure / H2 Database corruption: Chuck not found
        • Garbled Chinese characters in the command-line window of ODC
        • Failed to install client ODC
        • Client ODC startup failure or no response
        • `Not a valid secret key` is returned for connection creation in client ODC
        • `User does not exist` returned for connection creation in client ODC
        • High memory usage of client ODC
        • Client ODC fails to be installed or start due to a port conflict
      • Front-end Page Exception
        • JavaScript exception is thrown on the ODC page
        • No response in browser after opening ODC
        • White screen in ODC
      • Account Password Problem
        • Forgot the admin account password in ODC V3.2.0 or later
        • Forgot an account password in ODC V2.4.1 to V3.1.3
        • Forgot an account password in ODC V2.4.0 or earlier
    • FAQ
      • Installation of client ODC
      • Web ODC deployment and startup
      • FAQ
      • Command-line window
      • DDL statement display
  • Release Note
    • 90.odc-rn-4.2
      • ODC V4.2.2
      • ODC V4.2.0
      • ODC V4.2.1
    • V4.1
      • ODC V4.1.2
      • ODC V4.1.1
      • ODC V4.1.0
    • V4.0
      • ODC V4.0.2
      • ODC V4.0.0
    • V3.4
      • ODC V3.4.0
    • 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

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Developer Center
  3. V4.2.2

Manage partitions

Last Updated:2026-09-03 09:11:03

Background information
Considerations
Create a partitioning plan
View a partitioning plan task
Task information
Task process
Association records
Task logs
References

Background information

  • RANGE partitioning: Multiple rows with column values in an ordered, continuous, and non-overlapping range are assigned to a partition. For more information, see Set partitioning rules.

  • Partitioning plan: When you insert data into a RANGE-partitioned table, if the inserted data exceeds the upper limit of the current range, the operation fails and an error is returned. The partitioning plan feature is an extension of RANGE partitioning. OceanBase Developer Center (ODC) can automatically manage RANGE-partitioned tables based on the specified partitioning strategy, and you do not need to manually create partitions. This facilitates maintenance of the RANGE-partitioned tables.

This topic describes how to apply a partitioning plan in ODC for automatic partition management, including partition creation and deletion.

Considerations

  • Only OceanBase MySQL data sources are supported.

  • Only RANGE-partitioned tables that are partitioned based on a Timestamp-type field and RANGE COLUMNS-partitioned tables that are partitioned based on a Date-type field are supported.

Create a partitioning plan

Notice

  • In ODC V4.0.0 and later, the partitioning plan feature is supported only for RANGE-partitioned tables that are partitioned based on a Timestamp-type field and for RANGE COLUMNS-partitioned tables that are partitioned based on a Date-type field. If a RANGE- or RANGE COLUMNS-partitioned table that is partitioned based on a field of another type exists, ODC will skip creating partitioning plans of this type and record a warning log.
  • By default, a partitioning plan is executed on the hour.

Example: Create two partitions for the odc_test database in the mysql410 data source every three months. The created partitions are retained for 12 months.

Parameter
Example value
Project name odc_4.2.0
Data source mysql410
Database name odc_test
  1. On the Ticket tab of the SQL window, choose Partitioning Plan > Create Partitioning Plan.

    1

  2. In the Create Partitioning Plan panel, configure the following parameters.

    2

    Parameter
    Description
    Data Source The data source to which the partitioning plan belongs. The default value is the current data source.
    Partitioning Strategy The partitioning strategy. Search for and select a RANGE-partitioned table in the database and edit its partitioning strategy.
    • You can select Show Only Tables Without Partitioning Strategies next to Partition Strategy to display only tables with no partitioning strategies.
    • You can also select multiple RANGE-partitioned tables and configure a partitioning strategy for them at a time.
    • In the Partition policy column, click the edit icon and then you can edit the number of partitions to create, partitioning interval, retention period, and naming rules.
      • Number of Partitions: the number of partitions to create.
      • Partition Interval: the interval for creating partitions, in the unit of day, month, or year.
      • Retention Period: the retention period of partitions, in the unit of day, month, or year. After the specified retention period elapses, the created partitions are automatically deleted.
        Example: Set the number of partitions to 1, partition interval to 1 Month, and retention period to 12 month, which specifies to create one partition for the current table every month and to automatically delete partitions that were created one month ago.
        3
    Remarks The business background of the project, such as the change purpose and expected goal.
  3. After you specify the preceding information, click Submit in the lower-right corner of the panel.

  4. After a task is generated, the Ticket tab automatically appears, where you can view the approval status and basic information of the task.

    4

View a partitioning plan task

Task information

5

  1. In the partitioning plan list on the Ticket tab, click View in the Actions column of a partitioning plan task.

  2. In the Task Details panel, click the Task Information tab and view the basic task information and task settings.

    Parameter
    Description
    Basic task information The status, ID, type, connection, remarks, creator, and creation time of the task are displayed.
    Task settings You can view the partitioning strategy of the RANGE-partitioned table selected when you created the partitioning plan task.
  3. In the Task Details panel, click Initiate Again in the lower-right corner to initiate the task again.

Task process

6

  1. In the Task Details panel, click the Task Process tab and view the initiation status, approval status, execution status, and execution result of the task.

  2. You can click Initiate Again in the lower-right corner of the panel to initiate the task again.

Association records

  1. In the Task Details panel, click the Association Records tab and view the ID, database, creation time, and status of the task. You can also click View in the Actions column of a record.

  2. You can click Initiate Again in the lower-right corner of the panel to initiate the task again.

Task logs

7

  1. In the Task Details panel, click the Task Logs tab to view all logs and alert logs of the task.

    Tab
    Description
    All Logs Displays the complete information of all task logs, including INFO, ERROR, and WARN logs. You can click Search, Download, or Copy to search for, download, or copy all logs.
    Alert Logs Displays the ERROR and WARN logs of the task. When a task fails, you can view the error message in the alert logs. You can click Search, Download, or Copy to search for, download, or copy alert logs.
  2. You can click Initiate Again to initiate the task again.

References

  • Write and execute an SQL statement

  • Perform PL compilation and debugging

  • Use the command-line window

  • Edit and export the result set of an SQL statement

  • Analyze an SQL statement

  • Generate test data

  • Database change management

  • Synchronization of shadow tables

  • Lock-free schema changes

Previous topic

Clean up data
Last

Next topic

SQL plan task
Next
on this page
Background information
Considerations
Create a partitioning plan
View a partitioning plan task
Task information
Task process
Association records
Task logs
References