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 - V3.2.4Enterprise Edition

    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. V3.2.4
    iconOceanBase Database
    SQL - V 3.2.4Enterprise Edition
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    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

    NAME_RESOLVE

    Last Updated:2023-10-24 09:23:03  Updated
    Share
    What is on this page
    Syntax
    Parameters
    Exceptions

    folded

    Share

    The NAME_RESOLVE stored procedure resolves a specified name, including necessary synonym translation and authorization checking.

    Syntax

    DBMS_UTILITY.NAME_RESOLVE (
    name                IN  VARCHAR2,
    context             IN  NUMBER,
    schema             OUT VARCHAR2,
    part1                 OUT VARCHAR2,
    part2                 OUT VARCHAR2,
    dblink                OUT VARCHAR2,
    part1_type         OUT NUMBER,
    object_number  OUT NUMBER);
    

    Parameters

    Parameter
    Description
    name The name of the object. The value can be in the [[a.]b.]c[@d] format. a, b, and c are SQL identifiers, and d is a dblink. No syntax check is performed on a dblink. If a dblink is specified or the name is resolved to a value that contains a dblink, the object will not be resolved, but the schema, part1, part2, and dblink OUT parameters will be added. a, b, and c may be delimiters and contain single-byte or multi-byte National Language Support (NLS) characters.
    context The context, which must be an integer ranging from 0 to 9. Valid values:
    • 0: table
    • 1: PL (two part names)
    • 2: sequence
    • 3: trigger
    • 4: Java source code
    • 5: Java resource
    • 6: Java class
    • 7: type
    • 8: Java shared data
    • 9: index
    schema The schema of the object. If name does not specify the schema, the schema is obtained by resolving the name.
    part1 The first part of the name. The type of the name is part1_type (synonym or package).
    part2 If this parameter is not NULL, it is a subprogram name. If part1 is not NULL, the subprogram is contained in the package specified by part1. If part1 is NULL, the subprogram is at the top level.
    dblink If this parameter is not NULL, the database link was specified as part of name, or name was a synonym which was resolved to a value with a database link. In this case, if you want to further translate the name, you must call the DBMS_UTILITY.NAME_RESOLVE stored procedure on this remote node.
    part1_type The type of part1. Valid values:
    • 5: synonym
    • 7: stored procedure (top-level)
    • 8: function (top-level)
    • 9: package
    object_number The identifier of the object.

    Exceptions

    Exceptions are thrown to handle errors. Various syntax errors may occur when you specify the object name, causing various exceptions.

    The current version does not support UTF-16-encoded strings. Therefore, errors will occur when you use such strings.

    Previous topic

    IS_CLUSTER_DATABASE
    Last

    Next topic

    NAME_TOKENIZE
    Next
    What is on this page
    Syntax
    Parameters
    Exceptions