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.4.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 Developer Center
    3. V3.4.0
    iconOceanBase Developer Center
    V 3.4.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.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
    Community Edition
    • V 4.1.0
    • V 4.0.0
    • V 3.3.2
    • V 3.2.2
    Enterprise Edition
    • V 4.1.3
    • V 3.4.0

    FAQ

    Last Updated:2026-04-13 07:31:00  Updated
    Share
    What is on this page
    ODC client installation
    Launch of Web ODC
    Connection information
    Command-line window
    Encoding
    Data export and import
    DDL statement display

    folded

    Share

    ODC client installation

    1. Q: What items are pre-checked when I install the ODC client?

      A: The following items are pre-checked:

    2. Q: How do I view the logs when the installation or startup of the ODC client fails?

      A: You can view the error information in the main.log file. The storage path of the file varies with the OS.

    3. Q: What do I do when the installation or startup of the ODC client fails and an error message is returned indicating that a port conflict issue has occurred?

      A: You need to check the process that occupies port 8989, kill the process, and then reinstall or restart the ODC client. Dynamic ports are used in ODC V2.3.0 and later to avoid this problem.

      • On macOS, run the following command to check the use status of port 8989:

        lsof -i tcp:8989
        
      • On Windows, run the following statement to check the use status of port 8989:

        netstat -ano|findstr 8989
        

      ODC V3.2.0 allows you to set custom ports.

      • On Mac OS, set environment variables and run the corresponding command to enable the port:

        faq 3.1

        faq 3.2

      • On Windows, set the ODC_PORT parameter to enable the specified port:

        faq 3.3

    4. Q: What do I do when the installation or startup of the ODC client fails and an error message is returned indicating that the Java version is not supported?

      A: You can run the following command to check the Java runtime environment. We recommend that you install JDK1.8.0_242 or a later version. If you have installed JDK of an earlier version, upgrade JDK, restart the computer, and then reinstall or restart the ODC client.

      java -version
      
    5. Q: What do I do when the installation or startup of the ODC client fails and an error message is returned indicating that the software package is damaged?

      A: You can run the sudo spctl --master-disable command and select any source.

      FAQ - Software package damage

    6. Q: What do I do when the following message appears while I am installing the ODC client on macOS? 0630BE10-49E1-4E06-BB2B-F55CDEEDC31FA: The ODC client cannot be directly installed on Mac OS because it is not downloaded from the App Store. For more information about how to safely open an app that is not downloaded from the Apple Store, see Safely open apps on your Mac.

    Launch of Web ODC

    1. Q: What do I do when the username (such as admin) conflict occurs during the upgrade of ODC from an earlier version to V3.2.0 or later, and the startup fails?

      A:

      Example error:

      Failed to start due to username conflict.

      Solution :

      This example shows how to solve the admin conflict.

      1. Open the rename.properties file in the ../odc/static/tmp/ directory, and edit the rename.properties in the following format:

        admin=a new username
        
      2. Save the change and start ODC again.

    Connection information

    1. Q: What do I do when ODC is disconnected during the execution of an SQL query?

      A:

      The disconnection is caused by a proxy server timeout. You can send an sql-execute request in the browser debugging mode and check the response.

      To ensure sufficient proxy server timeout, modify the load balancing configurations. The following example shows how to modify the NGINX configuration:

      a. Add the following proxy configuration.

      proxy_read_timeout 1800;
      proxy_send_timeout 1800;
      proxy_connect_timeout 75;
      proxy_next_upstream off;
      

      Note
      We recommend that you set the proxy_connect_timeout parameter to a value of no longer than 75 seconds. For more information, see proxy_connect_timeout. If you do not set the proxy_next_upstream parameter to off, the NGINX proxy will forward your requests to the next ODC node. In this case, you need to log on to ODC again, and cannot use features related to file upload and download, such as downloading the result set of an asynchronous task.

      b. After the modification, restart the NGINX proxy.

    2. Q: How do I back up the connection information in ODC?

      A:

      • A: If you are using Web ODC, you can directly migrate or back up the MetaDB that you created during ODC deployment.
      • If you are using the ODC client, you can back up the odc2.0.mv.db file in the user directory. When you need to restore the connection, you can copy this file to the original directory.
    3. Q: What do I do when the execution of an SQL query times out?

      A: When the execution of an SQL query times out, you can manually set the timeout value. In Advanced Configuration on the connection information editing page, you can set SQL Query Timeout Value to a larger value. This configuration item is supported in ODC since V2.2.0. If you are using an earlier version, upgrade to ODC V2.2.0 or a later version.

    4. Q: What do I do when an error is returned indicating that the proxyro user does not exist?

      A: You need to set Query sys Tenant View to a user with the permission to query sys tenant views in Advanced Configuration on the connection information editing page. This configuration item is supported in ODC since V2.2.0. If you are using an earlier version, upgrade to ODC V2.2.0 or later.

    Command-line window

    1. Q: After I connect to a database by using the ODC client on Windows, the connection is stuck and then disconnected, as shown in the following figure. How do I solve this problem? Image 360A: This problem is caused by the lack of the system library files of msvcp120.dll and msvcr120.dll. Please install the official Visual Studio patch.

      Note
      You do not need to restart ODC after installing the Visual Studio patch. It is recommended to update ODC to the latest version. The current ODC version has a corresponding DDL file, so you do not need to install the patch separately.

    Encoding

    1. Q: What do I do when the result set of a query is full of garbled characters?

      A: This problem is caused by the inconsistency between the encoding format used by the ODC client and that expected by the database. The ODC client allows you to encode data in SQL windows or command-line windows

      Location
      Linux
      macOS
      Windows
      SQL window UTF8 UTF8 UTF8
      Command-line window UTF8 UTF8 GBK

      You can run the following command to query the encoding format expected by the database:

      show variables like '%character_set_c%';
      show variables like '%character_set_r%';
      

      The following table shows the encoding formats.

      FAQ - Garbled characters

      You can run the following command to modify the encoding format expected by the database:

      set names gbk;
      
      Scenario
      Solution
      The result set of an SQL statement executed in an SQL window contains garbled Chinese characters.
      - OS on the server where the ODC client is installed: Mac OS
      - Character set used by OBServer: GBK
      - Symptom Run the following command in the database:
      sql show variables like '%character%';
      The following variables are displayed:
      sql character_set_client gbk character_set_connection gbk character_set_filesystem binary character_set_results gbk character_set_system gbk
      It can be learned that the data is encoded in GBK format and the database expects that the ODC client uses the GBK character set.
      - Cause The character set the database expects the client to use is GBK. However, the ODC client uses UTF8, which is different from GBK.
      - Solution Modify the character set expected by the database so that it is compatible with the character set actually used by the ODC client.
      sql set names utf8mb4;
      After the character set is modified, execute the SQL statement in the current session again and view the result set. The result set contains no garbled Chinese characters.
      The result set of an SQL statement executed in a command-line window contains garbled Chinese characters.
      - OS on the server where the ODC client is installed: Windows
      - Character set used by OBServer: UTF8MB4
      - Symptom Run the following command in the database:
      sql show variables like '%character%'; The following variables are displayed:
      sql character_set_client utf8mb4 character_set_connection utf8mb4 character_set_filesystem binary character_set_results utf8mb4 character_set_system utf8mb4
      It can be learned that the data is encoded in UTF8MB4 and the database expects that the ODC client uses the UTF8MB4 character set.
      - Cause The character set the database expects the client to use is UTF8MB4. However, the ODC client uses GBK, which is different from UTF8MB4.
      - Solution Modify the character set expected by the database so that it is compatible with the character set actually used by the ODC client.
      sql set names gbk;
      After the character set is modified, execute the SQL statement in the current session again and view the result set. The result set contains no garbled Chinese characters.
      The result set of an SQL statement executed in a command-line window contains garbled Chinese characters.
      - OS on the server where the ODC client is installed: Windows
      - Character set used by OBServer: UTF8MB4
      - Symptom Run the following command in the database:
      sql show variables like '%character%';
      The following variables are displayed:
      sql character_set_client utf8mb4 character_set_connection utf8mb4 character_set_filesystem binary character_set_results utf8mb4 character_set_system utf8mb4
      It can be learned that the data is encoded in UTF8MB4 and the database expects that the ODC client uses the UTF8MB4 character set.
      - Cause The character set the database expects the client to use is UTF8MB4. However, the ODC client uses GBK, which is different from UTF8MB4.
      - Solution Modify the character set expected by the database so that it is compatible with the character set actually used by the ODC client.
      sql set names gbk;
      After the character set is modified, execute the SQL statement in the current session again and view the result set. The result set contains no garbled Chinese characters.
      The result set of an SQL statement executed in a command-line window contains garbled Chinese characters.
      - OS on the server where the ODC client is installed: Windows
      - Character set used by OBServer: UTF8MB4
      - Symptom Run the following command in the database:
      sql show variables like '%character%';
      The following variables are displayed:
      sql character_set_client utf8mb4 character_set_connection utf8mb4 character_set_filesystem binary character_set_results utf8mb4 character_set_system utf8mb4
      It can be learned that the data is encoded in UTF8MB4 and the database expects that the ODC client uses the UTF8MB4 character set.
      - Cause The character set the database expects the client to use is UTF8MB4. However, the ODC client uses GBK, which is different from UTF8MB4.
      - Solution Modify the character set expected by the database so that it is compatible with the character set actually used by the ODC client.
      sql set names gbk;
      After the character set is modified, execute the SQL statement in the current session again and view the result set. The result set contains no garbled Chinese characters.
      A file imported to the database contains garbled Chinese characters.
      - Encoding standard: GBK
      - OS on the server where the ODC client is installed: Mac OS
      - Character set used by OBServer: UTF8MB4
      - Symptom Run the following command in the database:
      sql show variables like '%character%';
      The following variables are displayed:
      sql character_set_client utf8mb4 character_set_connection utf8mb4 character_set_filesystem binary character_set_results utf8mb4 character_set_system utf8mb4
      It can be learned that the data is encoded in UTF8MB4 and the database expects that the ODC client uses the UTF8MB4 character set.
      - Cause In this case, the data is written into the database by importing a file, which is independent of the encoding of the ODC client. Instead, the encoding standard of the imported file must be consistent with the character set expected by the database.
      - Solution Transcode the file from the GBK format to the UTF8 format, and import it again.

    Data export and import

    1. Q: When the data import or export fails and the task summary information includes the following error information: javax.crypto.BadPaddingException: Given final block not properly padded. What do I do?

      A: This exception is caused because the OBProxy password failed to be decrypted. You can solve this problem in the following three ways:

    DDL statement display

    1. Q: What do I do when the DDL statements are incomplete in the table structure?

      A: The existing DDL statements include those for querying indexes and constraints. You can use the DBMS_METADATA.get_ddl function or run the SHOW CREATE TABLE command to query the DDL statements.

      Example:

      -- Sample DDL statement for querying table indexes.
      SELECT dbms_metadata.get_ddl('INDEX', 'indexname', 'username') from dual;
      -- Sample DDL statement for querying table comments.
      SELECT 'comment on table ' || table_name || ' is ' || '''' || comments  || ''';' 
      FROM all_tab_comments where owner='USER1' AND table_name='T_1' ;
      -- Sample DDL statement for querying table comments.
      comment on table T_1 is 'desc 2';
      
      -- Sample DDL statement for querying column comments.
      SELECT 'comment on column ' || table_name || '.' || column_name || ' is ' || '''' || comments  || ''';' 
      FROM all_col_comments where owner='USER1' AND table_name='T_1' ;
      -- Sample DDL statement for querying column comments.
      comment on column T_1.ID is 'ID 3';
      
    2. Q: Why are the displayed statements truncated when I check the DDL statements of a view or table on the view or table management page?

      A: This is because that the DDL tab of the database object management page calls the content of the text field in the all_views table. In versions earlier than OBServer V2.2.70, if the content of the text field in the all_views table is too long, it will be truncated. This problem has been solved in OBServer V2.2.70 and later versions. You can run the SHOW CREATE VIEW/TABLE statement to directly query the complete structure statements of the target view or table.

    Previous topic

    Rollback after upgrade failed
    Last
    What is on this page
    ODC client installation
    Launch of Web ODC
    Connection information
    Command-line window
    Encoding
    Data export and import
    DDL statement display