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 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

What's New Product Introduction Install OBCI Data types Basic development procedure Development example Load balancing 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 of OBCI Sample code
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 Call Interface
  3. V2.1.0
iconOceanBase Call Interface
V 2.1.0Enterprise Edition

Miscellaneous functions

Last Updated:2023-06-29 06:42:20  Updated
share
What is on this page
OCIBreak
OCIClientVersion
OCIErrorGet
OCIPasswordChange
OCIPing

folded

share

OCIBreak

Description : You can call this function to execute an immediate (asynchronous) termination of a currently executing OBCI function that has been associated with a server.

Function prototype :

sword OCIBreak ( 
void *hndlp,
OCIError *errhp );

Parameters :

Parameter Description
hndlp(IN/OUT) A handle to the service context or server.
errhp (IN/OUT) An error handle.

Return value : OCI_SUCCESS if succeeded, or OCI_ERROR if failed.

OCIClientVersion

Description : You can call this function to return the version of the client library at runtime.

Function prototype :

void OCIClientVersion ( 
sword *major_version,
sword        *minor_version,
sword        *update_num,
sword        *patch_num,
sword        *port_update_num );

Parameters :

Parameter Description
major_version(OUT) The major version of the client library.
minor_version(OUT) Minor version of the client library.
update_num(OUT) The update number of the client library.
patch_num(OUT) The patch number that has been applied to the client library.
port_update_num(OUT) The port update number, which is the port-specific patch applied to the library.

Return value : NULL.

OCIErrorGet

Description : You can call this function to return an error message in the buffer provided and an OceanBase error code.

Function prototype :

sword OCIErrorGet (
void *hndlp,
ub4 recordno,
OraText *sqlstate,
sb4 *errcodep,
OraText *bufp,
ub4 bufsiz,
ub4 type );

Parameters :

Parameter Description
hndlp (IN) An error handle or environment handle.
recordno (IN) Indicates the status record from which the application seeks information. The value starts from 1.
sqlstate (OUT) Not supported.
errcodep (OUT) Returns the error code.
bufp (OUT) Returns the error message text.
bufsiz (IN) The size of the buffer provided to receive the error message, in bytes.
type (IN) The type of the handle. Valid values: OCI_HTYPE_ERR or OCI_HTYPE_ENV.

Return value : OCI_SUCCESS if succeeded, or OCI_ERROR if failed.

OCIPasswordChange

Description : You can call this function to change the account password.

Function prototype :

sword OCIPasswordChange ( 
OCISvcCtx     *svchp,
OCIError      *errhp,
const OraText *user_name,
ub4           usernm_len,
const OraText *opasswd,
ub4           opasswd_len,
const OraText *npasswd,
sb4           npasswd_len,
ub4           mode );

Parameters :

Parameter Description
svchp (IN/OUT) A service context handle.
errhp (IN) An error handle.
user_name (IN) Specifies the username, which can be in UTF-16 encoding.
usernm_len (IN) Specifies the length of the username.
opasswd (IN) The old username.
opasswd_len (IN) Specifies the length of the old username.
npasswd (IN) The new username.
npasswd_len (IN) Specifies the length of the new username.
mode (IN) Use the settings in the environment handle. Default value: OCI_DEFAUL.

Return value : OCI_SUCCESS if succeeded, or OCI_ERROR if failed.

OCIPing

Description : You can call this function to make a round trip call to the server to confirm that the connection and the server are active.

Function prototype :

sword OCIPing ( 
OCISvcCtx     *svchp,
OCIError      *errhp,
ub4           mode );

Parameters :

Parameter Description
svchp (IN) A service context handle.
errhp (IN) An error handle.
mode(IN) The mode of the operation. Default value: OCI_DEFAUL.

Return value : OCI_SUCCESS if succeeded, or OCI_ERROR if failed.

Previous topic

Transaction functions
Last

Next topic

String functions
Next
What is on this page
OCIBreak
OCIClientVersion
OCIErrorGet
OCIPasswordChange
OCIPing