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

Describe functions

Last Updated:2024-05-14 09:02:08  Updated
share
What is on this page
OCIDescribeAny
objptr (IN)
Valid values of objtyp (IN)

folded

share

OCIDescribeAny

Purpose : You can call this function to describe existing schema and subschema objects.

Syntax :

sword OCIDescribeAny ( OCISvcCtx       *svchp,
OCIError        *errhp,
void            *objptr,
ub4              objptr_len,
ub1              objptr_typ,
ub1              info_level,
ub1              objtyp,
OCIDescribe     *dschp );

Parameters :

Parameter Description
svchp (IN) A service context handle.
errhp (IN/OUT) An error handle. When an error occurs, you can pass it to the OCIErrorGet function to obtain diagnostic information.
objptr (IN) For information about objptr (IN), see the objptr (IN) section below the table.
objnm_len (IN) The length of the name string to which objptr points. If you pass a name, the parameter value must not be zero. However, if objptr is a pointer to a type descriptor object (TDO) or its REF, the parameter value can be zero.
objptr_typ (IN) The type of the object that is passed in objptr. If objptr points to the name of a schema object, the valid value of this parameter is OCI_OTYPE_NAME.
info_level (IN) This parameter is reserved for future use. Pass in OCI_DEFAULT.
objtyp (IN) The type of the schema object that is described. For information about the valid values, see the table in the following Valid values of objtyp (IN) section.
dschp (IN/OUT) A description handle that is populated with the description of the object after the call. The parameter value must not be NULL.

Return value : None.

objptr (IN)

This parameter can be a string that contains the name of the object to be described. It must be in the encoding specified by the charset parameter in the previous call to the OCIEnvNlsCreate() function.

In this case, the string that contains the object name must be in the name1[.name2 ...][@linkname] format. Example: hr.employees.employee_id@mydb. Database links are allowed only to Oracle8i or later databases. The following SQL rules are used to interpret the object name:

  • If you only specify name1, and objtyp equals OCI_PTYPE_SCHEMA, the name refers to the named schema. The Oracle database must be version 8.1 or later.

  • If you only specify name1, and objtyp equals OCI_PTYPE_DATABASE, the name refers to the named database. When you use database_name@db_link_name to describe a remote Oracle database, the remote database must be version 8.1 or later.

  • If you only specify name1, and objtyp is not equal to OCI_PTYPE_SCHEMA or OCI_PTYPE_DATABASE, the name refers to the named object in the current schema of the current user. The named object can be a table, view, procedure, function, package, type, synonym, or sequence. When an Oracle7 Server is connected, the named object can only be a procedure or function.

  • If you specify name1.name2.name3 ..., the object name refers to a schema or a subschema object in the schema named name1. For example, in the string hr.employees.department_id, hr is the name of the schema, employees is the name of a table in the schema, and department_id is the name of a column in the table.

Valid values of objtyp (IN)

Object type Description
OCI_PTYPE_TABLE A table.
OCI_PTYPE_VIEW A view.
OCI_PTYPE_PROC A procedure.
OCI_PTYPE_FUNC A function.
OCI_PTYPE_DATABASE A database.
OCI_PTYPE_UNK An unknown schema object.

Previous topic

Terminate functions
Last

Next topic

Locale functions
Next
What is on this page
OCIDescribeAny
objptr (IN)
Valid values of objtyp (IN)