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 Database

SQL - V4.4.2

    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 Database
    3. SQL
    4. V4.4.2
    iconOceanBase Database
    SQL - V 4.4.2
    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
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    Plugin mechanism

    Last Updated:2026-04-02 06:23:56  Updated
    Share
    What is on this page
    Advantages of the Plugin Mechanism
    Simplified Expansion
    Efficient Updates
    Customizable Features
    Community and Ecosystem Support
    Plugin mechanism
    Plugin system architecture
    Compatibility
    References

    folded

    Share

    As database technology evolves and business scenarios become more diverse, flexibility and scalability have become core capabilities of modern distributed database systems. To meet the demand for efficient and flexible feature extensions, OceanBase Database has introduced a plugin mechanism, offering a modular and low-intrusion approach for feature expansion. With this mechanism, users can dynamically load, unload, and update feature modules without modifying the core code, enabling efficient customization and expansion of the database system.

    Notice

    The plugin mechanism in OceanBase Database is currently an experimental feature and is not recommended for use in production environments. Its functionality and stability are still being refined. At this stage, the plugin mechanism primarily supports the following scenarios:

    • Tokenizer plugins: Extend the full-text search capabilities of the database and allow users to customize tokenization logic.
    • Feature validation: Users can experience the plugin mechanism through this experimental feature and provide valuable feedback for future feature expansions.

    Advantages of the Plugin Mechanism

    Simplified Expansion

    The plugin mechanism of OceanBase Database allows you to easily add new feature modules to OceanBase Database without modifying the core code. This modular design makes it easier and more intuitive to expand functionality.

    Efficient Updates

    The plugin mechanism supports rapid iteration and updates, allowing users to promptly obtain and apply the latest feature improvements and fixes. This quick response capability ensures the system remains in optimal condition, meeting evolving business needs.

    Customizable Features

    The plugin mechanism allows users to customize specific features based on their business requirements, enhancing the system's flexibility and adaptability. Users can selectively load or unload plugins to ensure only the necessary feature modules are running.

    Community and Ecosystem Support

    Through the plugin mechanism, OceanBase Database users can share and publish custom plugins, fostering community interaction and collaboration, and enriching the plugin ecosystem. This not only enhances the diversity of OceanBase Database's features but also drives the growth of the entire community.

    Plugin mechanism

    OceanBase Database plugins are components that extend database functionality in the form of dynamic link libraries. You can add the following features without modifying the OceanBase Database:

    • Customized features, such as special tokenization algorithms.
    • Third-party ecosystem compatibility, such as support for specific data formats.
    • Commercially available expansion modules.

    Plugin system architecture

    The plugin system of OceanBase Database is designed to allow developers to quickly expand its capabilities.

    The relevant modules are as follows:

    1. Plugin library itself: includes external tables and tokenizers.

    2. Plugin Interfaces: specifies the version numbers of each plugin interface.

      Note

      Each plugin interface has its own version number.

    3. Plugin API: the interfaces provided by OceanBase Database to the plugin library for accessing OceanBase Database capabilities.

    OceanBase Database defines the interfaces that each plugin must implement. Each type of plugin has its own specific interfaces (Plugin Interfaces), such as for external tables and tokenizers. The plugin library implements these interfaces, and OceanBase Database can call the plugin implementations when loading the plugin library. When a plugin needs to use OceanBase Database capabilities, such as accessing data or logging, it can call the Plugin API (Plugin API). The implementation of the Plugin API is within OceanBase Database, referred to as Plugin API Implementation.

    This allows plugin developers to work without needing to understand the source code of OceanBase Database. They only need to rely on the plugin development library provided by OceanBase Database. Additionally, each type of plugin has sample code available for reference, such as sample code for tokenizer plugins.

    Internally, OceanBase Database includes the Plugin Interface Adaptor module to convert plugin interfaces and ensure compatibility with its existing feature definitions.

    When a user installs a plugin, the plugin object is maintained internally by the Plugin Manager. OceanBase Database also uses the Plugin Manager module to locate plugins when they are needed.

    Compatibility

    Since plugins are independent of OceanBase Database, compatibility between different versions of plugins and OceanBase Database needs to be considered. OceanBase Database strives to maintain compatibility with older versions of plugins to ensure that plugin operations do not cause serious runtime issues (such as system crashes) due to interface problems.

    OceanBase Database uses two types of version numbers to ensure compatibility: plugin interface (Plugin Interfaces) version numbers and plugin API (Plugin API) version numbers.

    Each plugin interface has its own version number. When a plugin is compiled, it must specify which version of the interface it implements. When the plugin library is installed in the database, OceanBase Database checks the version number. Additionally, to minimize the need for recompilation, plugin interfaces can only be added, not removed. When OceanBase Database calls a plugin interface, it also handles compatibility with older versions of the code, typically done by the Plugin Adaptor. For example, the first version of the tokenizer plugin interface is 0.1.0. After adding the check_if_charset_supported interface, the new version number is 0.2.0. When writing the plugin library, you can use the version number to determine whether to implement the new check_if_charset_supported interface.

    Another type of version number designed by OceanBase Database is the plugin API version number. This version number prevents situations where a plugin library needs to access a newer API, but the running OceanBase Database version is outdated and cannot provide that API. An error is thrown during installation in such cases. Like plugin interface version numbers, plugin API version numbers are incremented each time new content is added.

    It's worth noting that there are multiple plugin interface version numbers, each corresponding to a specific type of interface, such as the tokenizer plugin interface and the external table plugin interface. However, there is only one global plugin API version number. Even if a new API is added specifically for the tokenizer plugin, the global plugin API version number still needs to be incremented.

    References

    Overview of OceanBase Database plugin

    Previous topic

    Memory problem diagnosis
    Last

    Next topic

    Configuration management introduction
    Next
    What is on this page
    Advantages of the Plugin Mechanism
    Simplified Expansion
    Efficient Updates
    Customizable Features
    Community and Ecosystem Support
    Plugin mechanism
    Plugin system architecture
    Compatibility
    References