OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

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

A unified distributed database ready for your transactional, analytical, and AI workloads.

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 Connector/ODBC

V2.0.9

  • Overview
  • Driver installation and configuration
    • Prepare for the installation
    • Install and configure the ODBC driver for Linux
    • Install and configure OceanBase Connector/ODBC for Windows
  • User guide
    • Basic operations
    • Enable logging
    • Get REF CURSOR data type
    • Scalar function escape
    • Call Function
  • Reference information
    • API functions in OceanBase Connector/ODBC
    • Data types in OceanBase Connector/ODBC
    • Error codes in OceanBase Connector/ODBC
  • FAQ
    • Query timeout
    • Chinese garbled characters
    • Common OceanBase ODBC installation and configuration issues and solutions
  • 600.version-release-records
    • 9900.V2.0
      • OceanBase Connector/ODBC V2.0.9
      • OceanBase Connector/ODBC V2.0.8
      • OceanBase Connector/ODBC V2.0.7
      • OceanBase Connector/ODBC V2.0.6

Download PDF

Overview Prepare for the installation Install and configure the ODBC driver for Linux Install and configure OceanBase Connector/ODBC for Windows Basic operations Enable logging Get REF CURSOR data type Scalar function escape Call Function API functions in OceanBase Connector/ODBC Data types in OceanBase Connector/ODBC Error codes in OceanBase Connector/ODBC Query timeout Chinese garbled characters Common OceanBase ODBC installation and configuration issues and solutions OceanBase Connector/ODBC V2.0.9 OceanBase Connector/ODBC V2.0.8 OceanBase Connector/ODBC V2.0.7 OceanBase Connector/ODBC V2.0.6
OceanBase logo

The Unified Distributed Database for the AI Era.

Follow Us
Products
OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
Resources
DocsBlogLive DemosTraining & Certification
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 Connector/ODBC
  3. V2.0.9
iconOceanBase Connector/ODBC
V 2.0.9
  • V 2.0.9
  • V 2.0.8
  • V 2.0.7
  • V 2.0.6

Common OceanBase ODBC installation and configuration issues and solutions

Last Updated:2026-04-10 07:12:03  Updated
share
What is on this page
Issue 1: Missing shared library libreadline.so.6
Error message
Solution
Issue 2: Data source name not found
Error message
Solution
Issue 3: Unable to open the libobodbc.so library file
Error message
Solution
Issue 4: Access denied or cluster does not exist
Error message
Solution
Issue 5: C++ program cannot load the libobodbc.so shared library
Error message
Solution
Issue 6: C++ program reports an error SQLDriverConnect retcode is SQL_ERROR
Error message
Solution
References

folded

share

Issue 1: Missing shared library libreadline.so.6

Error message

error while loading shared libraries: libreadline.so.6
#/u01/unix-odbc/bin/isql -v OBDSN
/u01/unix-odbc/bin/isql: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory

Solution

Please refer to the Check and install libreadline section in the documentation.

Issue 2: Data source name not found

Error message

[IM002][unixODBC][Driver Manager]Data source name not found and no default driver specified
[ISQL]ERROR: Could not SQLConnect

Solution

Check the configuration file /etc/odbcinst.ini and ensure that there are no spaces or other invalid characters before the [Oceanbase] configuration section.

Issue 3: Unable to open the libobodbc.so library file

Error message

# sudo /u01/unix-odbc/bin/isql -v OBDSN
[01000][unixODBC][Driver Manager]Can't open lib '/u01/ob-connector-odbc/lib64/mariadb/libobodbc.so' : file not found
[ISQL]ERROR: Could not SQLConnect

Solution

Remove the sudo from the above command.

Issue 4: Access denied or cluster does not exist

Error message

[37000][unixODBC][ob-2.0.8]Access denied for user 'ALVIN'@'xxx.xxx.xxx.xxx' (using password: YES)
[ISQL]ERROR: Could not SQLConnect
[S1000][unixODBC][ob-2.0.8]cluster not exist
[ISQL]ERROR: Could not SQLConnect

Solution

Check the database configuration information in /etc/odbc.ini, such as whether the user password is correct. It is recommended to try to connect to the database using the command-line tool to confirm the validity of the configuration.

Issue 5: C++ program cannot load the libobodbc.so shared library

Error message

./test: error while loading shared libraries: libobodbc.so: cannot open shared object file: No such file or directory

Solution

Ensure that the LD_LIBRARY_PATH environment variable includes the /u01/ob-connector-odbc/lib64/mariadb path. You can set the environment variable using the following command:

export LD_LIBRARY_PATH=/u01/ob-connector-odbc/lib64/mariadb:$LD_LIBRARY_PATH

Issue 6: C++ program reports an error SQLDriverConnect retcode is SQL_ERROR

Error message

SQLDriverConnect retcode is SQL_ERROR
Segmentation fault (core dumped)

Solution

Run the following command to check whether OceanBase ODBC can connect normally.

/u01/unix-odbc/bin/isql -v OBDSN

References

  • Install and configure the ODBC driver for Linux

Previous topic

Chinese garbled characters
Last

Next topic

OceanBase Connector/ODBC V2.0.9
Next
What is on this page
Issue 1: Missing shared library libreadline.so.6
Error message
Solution
Issue 2: Data source name not found
Error message
Solution
Issue 3: Unable to open the libobodbc.so library file
Error message
Solution
Issue 4: Access denied or cluster does not exist
Error message
Solution
Issue 5: C++ program cannot load the libobodbc.so shared library
Error message
Solution
Issue 6: C++ program reports an error SQLDriverConnect retcode is SQL_ERROR
Error message
Solution
References