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

Databases

OceanBase DatabaseOceanBase Cloud OceanBase 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 DataPilot

Connectors and Middleware

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

Databases

OceanBase DatabaseOceanBase Cloud OceanBase 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 DataPilot
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

Embedded SQL in C for OceanBase

V1.1.7Enterprise Edition
  • What's New
  • What is ECOB?
  • ECOB compatibility with Pro*C
  • Install ECOB
  • Data types and variables
    • Overview
    • Supported data types
    • Data type conversion
    • Indicator variable
    • VARCHAR variable
    • Structure
    • String pointer
  • Embedded SQL statements
    • Overview
    • Variable declaration
    • Connect to OceanBase databases
    • Basic SQL statements
    • Prepared statements
    • Stored procedures
    • Cursor
    • Simple dynamic SQL statement
    • ANSI dynamic SQL statements
    • Error handling
      • SQLCA structure
      • WHENEVER statement
    • LOB-related SQL statements
  • Use ECOB
    • Environment preparation
    • Use ECOB
    • Compile the Tuxedo service
  • Command Line Options

Download PDF

Document Feedback
  1. Documentation Center
  2. Embedded SQL in C for OceanBase
  3. V1.1.7

Install ECOB

Last Updated:2026-09-04 08:37:38

Environment requirements
Installation instructions

Environment requirements

  • Hardware: x86_64、aarch64

  • Operating system: CentOS/Red Hat Linux Release 7.2

  • Compiler: GCC 4.8

Installation instructions

OceanBase Embedded SQL in C (ECOB) provides a software package in the RedHat Package Manager (RPM) format. You can contact OceanBase Technical Support to obtain the package.

The package contains the ecob precompiler of ECOB, the header file and dynamic library of the ecoblib runtime library, and a sample application. After you obtain the RPM package, run the following command in the command-line tool as the root user:

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

By default, the programs and files in the software package are installed in the following paths:

  • The ecob precompiler is installed in the /usr/local/bin path.

  • The header file is installed in the /usr/local/include path.

  • The dynamic library file is installed in the /usr/local/lib64 path.

  • The sample application is installed in the /usr/local/src/ecob-examples/ path.

After you install ECOB, run the following command to install the OBCI software package. For more information, see Install OBCI.

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

Previous topic

ECOB compatibility with Pro*C
Last

Next topic

Overview
Next
on this page
Environment requirements
Installation instructions