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 Database

SQL - V4.3.3

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & CertificationTicket
    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 Database
    3. SQL
    4. V4.3.3
    iconOceanBase Database
    SQL - V 4.3.3
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    DESCRIBE_PROCEDURE

    Last Updated:2024-12-02 03:48:27  Updated
    share
    What is on this page
    Syntax
    Parameters
    Return values

    folded

    share

    The DESCRIBE_PROCEDURE stored procedure provides a brief description of PL stored procedures.

    DESCRIBE_PROCEDURE identifies the name of a stored procedure and returns information about each parameter of this stored procedure.

    Applicability

    This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only the MySQL mode.

    Syntax

    DBMS_DESCRIBE.DESCRIBE_PROCEDURE(
    object_name                IN  VARCHAR2,
    reserved1                  IN  VARCHAR2,
    reserved2                  IN  VARCHAR2,
    overload                   OUT NUMBER_TABLE,
    position                   OUT NUMBER_TABLE,
    datalevel                  OUT NUMBER_TABLE,
    argument_name              OUT VARCHAR2_TABLE,
    datatype                   OUT NUMBER_TABLE,
    default_value              OUT NUMBER_TABLE,
    in_out                     OUT NUMBER_TABLE,
    datalength                 OUT NUMBER_TABLE,
    dataprecision              OUT NUMBER_TABLE,
    scale                      OUT NUMBER_TABLE,
    radix                      OUT NUMBER_TABLE,
    spare                      OUT NUMBER_TABLE
    include_string_constraints OUT BOOLEAN DEFAULT FALSE);
    

    Parameters

    Parameter
    Description
    object_name The name of the stored procedure described. The syntax of this parameter follows the rules of identifiers in SQL. The object name can be a synonym. This parameter is required and cannot be empty. The length of the name cannot exceed 197 bytes.
    reserved1 reserved2 Reserved parameters for future use. They must be set to NULL or an empty string.
    overload The unique ID allocated to the signature of the stored procedure. If the stored procedure is overloaded, this field stores a different value for each version of the stored procedure.
    position The position of the parameter in the parameter list.
    datalevel The level of the data type if the parameter is of a composite type, such as record.
    argument_name The name of the parameter related to the stored procedure described.
    datatype The data type of the described parameter. Valid values:
    • 0: a placeholder for a stored procedure without parameters
    • 1: VARCHAR, VARCHAR, and STRING
    • 2: NUMBER, INTEGER, SMALLINT, REAL, FLOAT, and DECIMAL
    • 3: BINARY_INTEGER, PLS_INTEGER, POSITIVE, and NATURAL
    • 8: LONG
    • 11: ROWID
    • 12: DATE
    • 23: RAW
    • 24: LONG RAW
    • 58: OPAQUE TYPE
    • 96: CHAR (ANSI FIXED CHAR) and CHARACTER
    • 106: MLSLABEL
    • 121: OBJECT
    • 122: NESTED TABLE
    • 123: VARRAY
    • 178: TIME
    • 179: TIME WITH TIME ZONE
    • 180: TIMESTAMP
    • 181: TIMESTAMP WITH TIME ZONE
    • 231: TIMESTAMP WITH LOCAL TIME ZONE
    • 250: PL RECORD
    • 251: PL TABLE
    • 252: PL BOOLEAN
    default_value The value is 1 if the described parameter has a default value, and is 0 if otherwise.
    in_out The parameter mode. Valid values:
    • 0: IN
    • 1: OUT
    • 2: IN OUT
    datalength Returns the length constraint for a %rowtype parameter, and returns 0 if otherwise. If include_string_constraints is set to TRUE, the parameter length constraint is passed back if it is of a proper parameter type. String types:
    • 1
    • 8
    • 23
    • 24
    • 96
    dataprecision The precision of the described parameter if its datatype is set to 2 (NUMBER).
    scale The number of decimal places of the described parameter if its datatype is set to 2 (NUMBER).
    radix The base of the described parameter if its datatype is set to 2 (NUMBER).
    spare Reserved for future use.
    include_string_constraints The default value is FALSE. If the value is set to TRUE, the type constraint of the described parameter is passed back if it is of a proper parameter type. String types:
    • 1
    • 8
    • 23
    • 24
    • 96

    Return values

    All values of DESCRIBE_PROCEDURE are returned through the OUT parameter. The data types are stored as PL tables to accommodate a variable number of parameters.

    Previous topic

    Overview
    Last

    Next topic

    Overview
    Next
    What is on this page
    Syntax
    Parameters
    Return values