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.3.1

    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.3.1
    iconOceanBase Database
    SQL - V 4.3.1
    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

    Create MetaDB

    Last Updated:2026-04-15 08:25:14  Updated
    Share
    What is on this page
    Prerequisites
    Procedure
    What to do next
    References

    folded

    Share

    As a service provided by OceanBase Database, MetaDB is deployed in containers and has a built-in OceanBase Database Proxy (ODP) to support direct access to OceanBase Database. It stores the metadata of OceanBase Cloud Platform (OCP), OceanBase Developer Center (ODC), and OceanBase Migration Service (OMS).

    This topic describes how to create MetaDB by using OceanBase Admin Toolkit (OAT).

    Note

    • This topic uses OAT V4.2.0 as an example. The GUI varies with the OAT version.
    • We recommend that you create a separate tenant in OceanBase Database for MetaDB. MetaDB stores the persistent data other than monitoring data. We recommend that you allocate at least 4 CPU cores and 8 GB of memory to MetaDB.
    • The disk space required depends on factors such as the size of the managed cluster and stored files and the data retention period. We recommend that you reserve at least 100 GB of disk space.

    Prerequisites

    Before you create MetaDB, ensure that:

    • You have installed OAT. For more information, see Deploy OAT.
    • You have logged on to OAT by using a super administrator account or an account with O&M permissions. For more information, see Manage users.
    • You have added the server where MetaDB is to be installed. For more information, see Add a server.

    Procedure

    1. In the left-side navigation pane, choose Product Service > Components.

    2. On the Components Management page, click Create Component in the upper-right corner, and choose Create MetaDB.

      Parameter
      Description
      MetaDB Image The Docker image of MetaDB.
      Component Name The name of the component, which must be unique. Default value: metadb.
      Server The IP address of the server where MetaDB is to be installed.
      Custom Zone The zone name and addresses of the IDC, server, and RootServer.

      Notice

      If you choose to specify this parameter, the Server parameter is automatically hidden.

      Configure the quorum service Specify whether to enable the arbitration service. When you enable the arbitration service, you must enter the IP address of the arbitration service, for example, xxx.xxx.xxx.xxx:xxxx.

      Notice

      You can configure the arbitration service only if you set the MetaDB Image parameter to a version of MetaDB V4.X.

      CPU The number of CPU cores allocated to MetaDB. Default value: 32C.

      Note

      If the OCP server has 16 CPU cores and 32 GB of memory, we recommend that you set CPU to 8C for MetaDB.

      Memory The memory allocated to MetaDB. Default value: 90GB.

      Note

      If the OCP server has 16 CPU cores and 32 GB of memory, we recommend that you set Memory to 16G for MetaDB.

      MetaDB Cluster Name The name of the MetaDB cluster.
      root@sys Password The password of the root user of the sys tenant in the MetaDB cluster.
    3. On the Create MetaDB page, specify the parameters in the Basic Configurations section.

      Parameter
      Description
      MetaDB Image The Docker image of MetaDB.
      Component Name The name of the component, which must be unique. Default value: metadb.
      Server The IP address of the server where MetaDB is to be installed.
      CPU The number of CPU cores allocated to MetaDB. Default value: 32C.

      Note

      If the OCP server has 16 CPU cores and 32 GB of memory, we recommend that you set CPU to 8C for MetaDB.

      Memory The memory allocated to MetaDB. Default value: 90GB.

      Note

      If the OCP server has 16 CPU cores and 32 GB of memory, we recommend that you set Memory to 16G for MetaDB.

      MetaDB Cluster Name The name of the MetaDB cluster.
      root@sys Password The password of the root user of the sys tenant in the MetaDB cluster.
    4. On the Create MetaDB page, specify the parameters in the Installation Path (Optional) section.

      The following table describes the installation path parameters that you can specify when you create MetaDB.

      Parameter
      Description
      Installation Directory The installation path of MetaDB. Default value: /home/admin/oceanbase.
      Data Directory The data storage path of MetaDB. Default value: /data/1.
      Log Directory The log storage path of the MetaDB. Default value: /data/log1.
      Backup Directory The backup path of MetaDB. By default, this parameter is left empty. This parameter is optional.
    5. On the Create MetaDB page, specify the parameters in the Startup Parameters (Optional) section.

      Notice

      If the OCP server has 16 CPU cores and 32 GB of memory and you have configured 8 CPU cores and 16 GB of memory for MetaDB, you need to set the system_memory parameter to 5G and resource_hard_limit to 150 in the OB Process Startup Parameters (Optional) area.

      The following table describes the startup parameters that you can specify when you create MetaDB.

      Parameter
      Description
      MySQL Port The MySQL port of MetaDB. Default value: 2881.
      RPC Port The RPC port of MetaDB. Default value: 2882.
      OB Process Startup Parameters (Optional) You can modify or add startup parameters of the observer process as needed.
      OB Proxy Service Port The service port of the ODP. Default value: 2883.
      OB Proxy Process Startup Parameters (Optional) You can modify or add the startup parameters of the obproxy process as needed. For more information, see Parameter description.
      SSHD Port The SSHD port in the MetaDB container. Default value: 2022. OCP deploys the OCP Agent by connecting to the SSHD port.
      root Password The password of the root user in the MetaDB container.
    6. After you set the parameters, click Submit.

      You can also click Reset to restore the default configurations.

    What to do next

    After you install MetaDB, you can install the OceanBase ecosystem tools, including OCP, ODC, OMS, and OB Sharding.

    References

    Create and uninstall MetaDB

    Previous topic

    Upload installation packages
    Last

    Next topic

    Deploy OCP
    Next
    What is on this page
    Prerequisites
    Procedure
    What to do next
    References