OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Call Interface

V2.1.0Enterprise Edition
  • What's New
  • Product Introduction
  • Install OBCI
  • Data types
  • Basic development procedure
  • Development example
  • Load balancing
  • Reference Functions
    • Connect, authorize, and initialize functions
    • Handle and descriptor functions
    • Bind, define, and describe functions
    • Statement functions
    • LOB functions
    • Transaction functions
    • Miscellaneous functions
    • String functions
    • Date and Datetime functions
    • Interval functions
    • Number functions
    • Terminate functions
    • Describe functions
    • Locale functions
    • Define functions
  • Full-link Diagnostic Trace
    • Full-link Diagnostic Trace
    • Full-link Diagnostic Trace of OBCI
    • Sample code

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Call Interface
  3. V2.1.0

Install OBCI

Last Updated:2026-09-04 08:28:32

Prerequisites
Environment requirements
Preparations
Installation instructions
Usage instructions

Prerequisites

Environment requirements

  • Hardware: x86_64, aarch64

  • Operating system: CentOS/Red Hat Linux Release 7.2

  • Compiler: GCC 4.8

Preparations

  • OceanBase Database: V2.2.76 or later (It is recommended to use OceanBase Database V4.0 or later to experience the full features of the current version).

  • ODP (OBProxy): V4.0 or later is recommended.

  • libobclient: V2.1.1 or later.

  • Install the Oracle-related driver files (oracle-instantclient), as Oracle header files are required starting from OBCI V2.0.4.

  • OBCI must be installed, and the GCC compiler must be deployed in advance.

Note

We recommend that you use the latest versions of OBServer and OBProxy to fully support the new features of this version.

Installation instructions

OBCI is distributed as an RPM package. The OBCI software package includes the OCI runtime library libobci, its header files, static libraries, and a sample program.

After obtaining the RPM package, run the following command with root privileges in the command-line tool to install it:

rpm -ivh obci-<version>.x86_64.rpm

By default, the programs and files included in the package will be installed to the following paths:

  • Header files: Installed under /u01/obclient/include.

  • Library files: Installed under /u01/obclient/lib.

Note

When using V2.0.4 or later, the RPM package does not include the /u01/obclient/include folder. Instead, Oracle header files (such as /usr/include/oracle/11.2/client64/) are required.

Usage instructions

OBCI provided by OceanBase is a C language call interface compatible with Oracle OCI, offering full feature compatibility with OCI.

Therefore, when using Oracle OCI to write C language applications, you do not need to modify any lines of application source code. You only need to specify the runtime library as the OBCI library during linking. The library files are installed by default under /u01/obclient/lib.

Note

If dynamically linking to libobci.so, you also need to manually install the OBClient RPM package. If statically linking to libobci.a, you do not need to install the OBClient RPM package.

For specific linking methods, refer to Basic development procedure.

Previous topic

Product Introduction
Last

Next topic

Data types
Next
on this page
Prerequisites
Environment requirements
Preparations
Installation instructions
Usage instructions