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

ECOB compatibility with Pro*C

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

Compatibility
Migration instructions

Compatibility

OceanBase Embedded SQL in C (ECOB) V1.1.0 does not support the following features of PRO*C:

  1. ECOB does not completely support the preprocessor macro #elif in C language when PARSE is set to FULL.

  2. ECOB does not support the value YES for THREADS or the corresponding multi-thread secure runtime.

  3. ECOB does not support Dynamic SQL Method 4 of Oracle or the related SQL descriptor area (SQLDA) data structure.

  4. ECOB does not support executing the PL anonymous block by using the EXECUTE ... END-EXEC cluse.

Migration instructions

To replace the Oracle PROC precompiler program with the OceanBase ecob precompiler program to compile the source files, you only need to slightly adjust the code.

At present, ECOB does not support the C preprocessor command #elif. When an error is returned, perform the following troubleshooting steps:

  1. If #elif appears in the .h header file, replace h with #include <>.

  2. If #elif appears in the .pc file, you can: a. Set parse_cpp_directive to no. b. Remove #elif.

    ECOB does not support Dynamic SQL Method 4 of Oracle or the related SQLDA data structure. If this feature is required, change to the DESCRIPTOR based dynamic SQL statements of ANSI.

Previous topic

What is ECOB?
Last

Next topic

Install ECOB
Next
on this page
Compatibility
Migration instructions