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.0.0Enterprise Edition

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive 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.0.0
    iconOceanBase Database
    SQL - V 4.0.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
    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

    Check after deployment

    Last Updated:2023-07-24 09:52:12  Updated
    Share
    What is on this page
    Log on to ODC
    Connect to OceanBase Database by using ODC

    folded

    Share

    After you deploy OceanBase Developer Center (ODC), you can log on to ODC to check if everything is ok.

    The GUI varies with the ODC version. This topic takes ODC V2.3.0 as an example. For other ODC versions, see User Guide of the corresponding version.

    Log on to ODC

    1. Log on to ODC from its access address.

      The access address is in the format of http://<IP address of the ODC server>:8989.

    2. On the logon page, enter the default account admin.

      Note

      Contact OceanBase Technical Support to obtain the default password of the admin account. To ensure account security, change the password after the first logon.

      1

    Connect to OceanBase Database by using ODC

    1. After you log on to ODC, click Create Connection to go to the Create Connection page.

    2. On the Create Connection page, you must specify the following information. If you have an OceanBase Database connection string, all the following information can be obtained from the connection string (mysql -hHost name-PPort number-uDatabase username@Tenant name#Cluster name-DDefault database-p'Database password). Alternatively, you can use the smart parser provided on the page to fill in the information.

      Parameter
      Note
      Region Select the region where the connected instance is located. You can select Public Cloud if your database instance is deployed on Alibaba Cloud, or Private Cloud if your database instance is deployed in your own environment.
      Connection Mode Select MySQL or Oracle.
      Connection Name Specify the name of the connection.
      Endpoint Host Name: Obtain the host name from the tenant information page. Port Number: Obtain the port number from the tenant information page. Cluster: Enter the name of the cluster where the database to be connected is located. Tenant: Enter the name of the tenant to which the database to be connected belongs.
      Default Database (optional) When you connect ODC to a database in a MySQL tenant, you can choose to specify a default database for the connection. This parameter does not need to be specified when you connect ODC to a database in an Oracle tenant.
      Database Username An account under the tenant. In MySQL mode, this account must have the privilege to access the default database.
      Database Password The password of the account under the tenant. You can click Test Connection after the password box to test whether you can connect to the target database. An error will be reported if the configuration information such as the username, password, or network settings are invalid. You can connect only to a database under the current tenant. Otherwise, a test failure error will be returned.
      Intelligent Parsing Paste the connection string information. Then, ODC automatically recognizes and fills in the connection information.
      SQL Query Timeout Value Click Advanced Configuration in the lower part of the page to display this item. You can specify a timeout value for SQL queries. A query whose execution time exceeds the timeout value is automatically terminated. The default timeout value is 60 seconds.
      Query sys Tenant View Click Advanced Configuration in the lower part of the page to display this item. Account: The account that has the permission to view the sys tenant view. Password: The password of the account. After you enter the account and password, click Test Connection next to the password box to verify whether the account information is valid. For ODC V2.3.0 and later versions, you need to configure the root account if you want to import and export data and view the partition information.
      • Click Save in the lower part of the page to persist your configuration information in the ODC connection list. Next time you log on to ODC, you can directly select the connection from the list. The connection configuration does not necessarily need to pass the connection test when you save the configuration.

        2

      • In the lower part of the page, ODC also provides the Copy Connection String button. When you click the button, ODC copies the current connection information as a connection string, which is easy for you to obtain the connection information.

      • If you do not need to save the current connection configuration, click Cancel. Then, ODC displays a confirmation dialog box about whether to exit the Create Connection page.

    Previous topic

    Start deployment
    Last

    Next topic

    Overview
    Next
    What is on this page
    Log on to ODC
    Connect to OceanBase Database by using ODC