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

V3.1.0Enterprise Edition

  • What's New
    • Product updates
  • Overview
    • What is ODC?
    • Benefits
    • Architecture
    • Features
    • Limits
  • Quick Start
    • Overview
    • Install ODC
    • Account registration
    • Log on to an account
    • Create a 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)
    • Log on to ODC
      • Account registration
      • Log on to an account
      • Change password
    • ODC homepage
    • Personal settings
    • Connect to a database
      • Create a connection
      • Manage connections
    • Use the workspace
      • Overview
      • SQL window
      • Anonymous block window
      • Command-line window
      • Stored scripts
      • Snippets
    • Use tools
      • Data export and import
        • Overview
        • Export and import formats
        • Batch export and import
        • Single table export and import
      • Data mocking
      • Asynchronous execution
    • Recycle bin
    • Task management
      • Overview
      • Import tasks
      • Export tasks
      • Data mocking tasks
      • Asynchronous tasks
    • Session management
    • 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 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
    • Help Center
  • User Guide (Client ODC)
    • Install ODC
    • ODC homepage
    • Personal settings
    • Connect to a database
      • Create a connection
      • Manage connections
    • Use the workspace
      • Overview
      • SQL window
      • Anonymous block window
      • Command-line window
      • Stored scripts
      • Snippets
    • Use tools
      • Data export and import
        • Overview
        • Export and import formats
        • Batch export and import
        • Single table export and import
      • Data mocking
      • Asynchronous execution
    • Recycle bin
    • Task management
      • Overview
      • Import tasks
      • Export tasks
      • Data mocking tasks
      • Asynchronous tasks
    • Session management
    • 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 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
    • Help center
  • Deployment Guide
    • Deployment overview
    • Preparations before deployment
    • Deploy a single ODC node
      • Deployment process
      • Load and run ODC image
    • Deploy ODC in high availability mode
      • Deployment process
      • Load and run ODC image
      • Deploy SSL certificate
      • Deploy the NGINX proxy
      • Configure certificate trust
    • Deployment verification
  • Upgrade Guide
    • Overview
    • Preparation for upgrade
    • Upgrade single-node ODC
      • Upgrade process
      • Stop ODC of the earlier version
      • Load and run ODC image
    • Upgrade high-availability
      • Upgrade process
      • Stop ODC of the earlier version
      • Load and run ODC image
      • Upgrade NGINX image
    • Upgrade verification
    • Rollback after upgrade failed
  • FAQ

Download PDF

Product updates What is ODC? Benefits Architecture Features Limits Overview Install ODC Account registration Log on to an account Create a connection Tips on the SQL Console Create a connection Export data Import data Debug a stored procedure View the performance of an SQL statement Account registration Log on to an account Change password ODC homepage Personal settings Create a connection Manage connections Overview SQL window Anonymous block window Command-line window Stored scripts Snippets Data mocking Asynchronous execution Recycle bin Overview Import tasks Export tasks Data mocking tasks Asynchronous tasks Session management Help Center Install ODC ODC homepage Personal settings Create a connection Manage connections Overview SQL window Anonymous block window Command-line window Stored scripts Snippets Data mocking Asynchronous execution Recycle bin Overview Import tasks Export tasks Data mocking tasks Asynchronous tasks Session management Help center Deployment overview Preparations before deployment Deployment process Load and run ODC image Deployment process Load and run ODC image Deploy SSL certificate Deploy the NGINX proxy Configure certificate trust Deployment verification Overview Preparation for upgrade Upgrade process Stop ODC of the earlier version Load and run ODC image Upgrade process Stop ODC of the earlier version Load and run ODC image Upgrade NGINX image Upgrade verification Rollback after upgrade failed FAQ
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 Developer Center
  3. V3.1.0
iconOceanBase Developer Center
V 3.1.0Enterprise Edition
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
  • V 4.4.3
  • 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

Load and run ODC image

Last Updated:2024-09-13 03:35:32  Updated
Share
What is on this page
Load the image
Run the image

folded

Share

To upgrade OceanBase Developer Center (ODC) in single-node deployment mode, you need to load and run the ODC image again after updating the MetaDB and stopping the ODC container of the earlier version.

Load the image

To obtain the ODC image on the host, select the required image from the following list and click Download .

  • Image in X86 architecture: Download

  • Image in ARM architecture: Download

After you obtain the image, run the following statement in the command-line tool to load it.

gunzip -c obodc-{$version}.tar.gz | docker load

Run the image

Run the following sample statements of the image in the command line tool.

#!/usr/bin/env bash
docker run -d -i -p 8989:8989 --cpu-period 100000 --cpu-quota 400000 --memory 8G --name "obodc" 
-e "DATABASE_HOST=100.00.00.00" 
-e "DATABASE_PORT=60805" 
-e "DATABASE_USERNAME=db_user@tenant_name#cluster_name" 
-e "DATABASE_PASSWORD=******" 
-e "DATABASE_NAME=odc_metadb" 
-e "ODC_PROFILE_MODE=alipay"
reg.docker.alibaba-inc.com/oceanbase/odc-server:{image_tag}

You can run the docker images statement to view {image_tag} on the host after you load the image. The following table describes other parameters.

Parameter
Description
-p Specifies the port mapping in the format of host port:container port. The port mapping in the example statement is 8989:8989. You can change the host port as needed. The container port is 8989 by default.
--cpu-period --cpu-quota ---cpu-period specifies the interval of reallocating CPU resources to a container, in milliseconds. ---cpu-quota specifies the time to run the current container in the specified period, in milliseconds. You can use these two parameters in combination to specify the number of CPU cores to allocate to a container. The value of cpu-quota/cpu-period indicates the number of CPU cores that can be used by a Docker container. In the preceding example, the value of 400000/100000 indicates that the container can use at most 4 CPU cores.
--memory Specifies the maximum memory size for the container.
--name Specifies the name of the container.
DATABASE_HOST Specifies the IP address of the MetaDB.
DATABASE_PORT Specifies the port number of the MetaDB.
DATABASE_USERNAME Specifies the username of the MetaDB. In OceanBase Database, the username is given in the db_user@tenant_name#cluster_name format.
DATABASE_PASSWORD Specifies the username for connecting to the database.
DATABASE_NAME Specifies the name of the MetaDB.
ODC_PROFILE_MODE Specifies the mode, which is alipay by default.

In addition to the preceding parameters, you can also use the following parameters when running the image:

Parameter
Description
ODC_LOG_DIR Specifies the log directory, which is /opt/odc/log by default.
OBCLIENT_WORK_DIR Specifies the working directory of OBClient, which is /opt/odc/data by default.
ODC_JAR_FILE Specifies the directory of JAR files, which is /opt/odc/lib/odc-web-starter-*.jar by default.
ODC_WORK_DIR Specifies the working directory of ODC, which is /opt/odc/script by default.
ODC_JVM_HEAP_OPTIONS Specifies the JVM stack memory. The default maximum value of the parameter -Xmx is 60% of available physical memory size. The startup script of ODC checks whether the available memory in the current environment reaches 2048 MB. To start ODC, the host or Docker container must have at least 3.4 GB of memory based on the 60% threshold of available memory. If the memory of the host or Docker container is less than 3.4 GB, you can specify the ODC_JVM_HEAP_OPTIONS parameter to bypass the available memory checking. For example, you can set the parameter to "-Xmx2048m -Xms2048m".
ODC_JVM_GC_OPTIONS Specifies the garbage collection policy for JVM. Default policy: -XX:+UseG1GC -XX:+PrintAdaptiveSizePolicy -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -Xloggc:/opt/odc/log/gc.log -XX:+UseGCLogFileRotation -XX:GCLogFileSize=50M -XX:NumberOfGCLogFiles=5.
ODC_JVM_OOM_OPTIONS Specifies the OutOfMemory policy for JVM, which is -XX:+ExitOnOutOfMemoryError by default.
ODC_JVM_EXTRA_OPTIONS Specifies other JVM configuration parameters, which are null by default.
ODC_SERVER_PORT Specifies the HTTP listening port for ODC Server, which is 8989 by default.

Previous topic

Stop ODC of the earlier version
Last

Next topic

Upgrade process
Next
What is on this page
Load the image
Run the image