This topic describes how to deploy and log in to Web ODC.
Note
For more information about the environment requirements, see Limitations.
Deploy single-node Web ODC
Apply for a tenant in MySQL mode of OceanBase Database. Allocate 2 CPU cores and 8 GB of memory to the tenant. You can name the tenant as you like. Example: The cluster name of the tenant is
odc_clusterand the tenant name isodc_tenant.Create a database and a user under the tenant as the ODC metabase. You can set the username, password, and metabase name as you like. Example: The metabase name is
odc_metadband both the database username and password areobodc.Record the name, username, password, tenant name, and cluster name of the metabase, which are required when you deploy ODC.
Configure the deployment environment for the single-node Web ODC node based on the number of ODC users.
Number of ODC users Server type Server quantity Minimum functional configuration Minimum performance configuration 20 ODC Docker server 1 2 CPU cores and 4 GB of memory 4 CPU cores and 16 GB of memory For more information about how to install and run the Docker container, see Use bind mounts.
Download the ODC image as needed to obtain the desired image architecture in the
Maintenance Tools of the OceanBase Download Center.Notice
- The images of ODC V4.2.0 and later versions have been published to Docker Hub. If your local device running ODC can access Docker Hub, you can directly start ODC Docker without downloading the image. For details, see Step 7 to load the image.
- If Docker Hub cannot be accessed directly, you still need to download and load the image file.
After obtaining the image file on the host, run the following statement in the command line tool to load the image:
Syntax:
gunzip -c obodc-{$version}.tar.gz | docker loadExample:
#!/usr/bin/env bash docker run -v /var/log/odc:/opt/odc/log -v /var/data/odc:/opt/odc/data \ -d -i --net host --cpu-period 100000 --cpu-quota 400000 --memory 8G --name "obodc" \ -e "DATABASE_HOST=xxx.xx.xx.xx" \ -e "DATABASE_PORT=60805" \ -e "DATABASE_USERNAME=[username]@[tenant name]#[cluster name]" \ -e "DATABASE_PASSWORD=******" \ -e "DATABASE_NAME=odc_metadb" \ -e "ODC_ADMIN_INITIAL_PASSWORD=******" \ oceanbase/odc:4.2.2
Log in to Web ODC
Open the browser, enter the endpoint of Web ODC, and press Enter.
Enter the account and password to log in to Web ODC.
Note
You can also use SSO integration to automatically maintain account information. For more information, see Configure SSO.

Select the target workspace.
Log in to ODC and go to the connection management page. Click
My in the lower-left corner of the navigation bar. The account name is displayed. ClickExit in the drop-down menu to return to the ODC logon page. You can log in to ODC with another account.