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

V4.3.1

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive 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 Developer Center
    3. V4.3.1
    iconOceanBase Developer Center
    V 4.3.1
    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
    • V 4.4.3
    • V 4.4.2
    • V 4.4.1
    • V 4.4.0
    • V 4.3.4
    • V 4.3.3
    • V 4.3.2
    • V 4.3.1
    • V 4.3.0
    • V 4.2.4
    • V 4.2.3
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.3 and earlier

    Manage program packages

    Last Updated:2026-04-13 07:30:36  Updated
    Share
    What is on this page
    Structure tree
    Management actions
    Shortcut function
    Right-click function
    Package Header tab
    Package Body tab
    Package header/body editing page

    folded

    Share

    Log on to OceanBase Developer Center (ODC) and click the name of the target connection to go to the corresponding connection management page. You can click Program Package in the left-side navigation pane to get a list of program package objects in the current database.

    In the program package list, you can view the structure tree of an object. You can also right-click the target object to perform some management actions on the object. You can also double-click the name of a program package to go to the program package page, which provides a Package Header tab and a Package Body tab.

    Structure tree

    You can click the Expand icon before the name of the target program package in the program package list. Then, the structure tree of the program package displayed in a drop-down list, as shown in the following figure. The structure tree of a program package can have up to six levels. When you right-click an item in the tree, the shortcut menu displays some actions that you can perform on the item. For more information about these actions, see the Management actions section, where you can find the table describing the management options.

    Image 227

    Management actions

    The names of program package objects support ascending order by the head character by default in the program package list.

    Shortcut function

    The following functions are provided in the upper right corner of the tree:

    Action
    Description
    Create Click this option to create program package.
    Filter Click this option to display valid/invalid program packages.
    Batch Compile Click this option to batch compile the program package object. Including: compile all objects and compile invalid objects.
    batch compile
    Refresh Click this option to refresh the structure tree after you perform management actions on the program package, so that the structure tree displays the latest information.

    Right-click function

    Right-click the target object in the structure tree. A shortcut menu appears, displaying some management options provided by ODC for you to conveniently manage the target object. The following table describes the management options.

    Action
    Description
    Create Program Package Click this option to go to the Create Program Package page, where you can create a program package header as prompted.
    Create Package Body Click this option to go to the package body definition page and create a program package body.
    Edit the package header and package body Click this option to open both the package header editing and package body editing pages, where you can edit the package header and the package body.
    Delete Click this option to delete the program package.
    Refresh Click this option to refresh the structure tree after you perform management actions on the program package, so that the structure tree displays the latest information.
    View Click this option to go to the Package Header tab or the Package Body tab, where you can view comprehensive information such as the basic information and code of the program package.
    Edit Click this option to go to the package header editing and package body editing pages, which display the package header and package body definition statements and where you can continue to edit the package header and the package body.
    Compile Click this option to compile the program package.
    Debug Click this option to go to the debugging page, where you can debug the program package. PL object debugging is supported only when OBServer V2.2.73 or a later version, or V3.0.00 or a later version is connected.
    Note
    ODC V4.0.0 and later support setting the parameter value as DEFAULT, NULL or empty string.
    Run Click this option to run the stored procedure or function in a subprogram in the program package body.
    Export Export single table, see Single table export and import.
    Download Download the SQL file for the program package object.
    Delete Click this option to delete the body of the program package.

    Package Header tab

    On the program package management page, click the Package Header tab. The following information is displayed:

    Section
    Description
    Basic Information This section displays the basic information about the program package in fields such as Package Name , Created By , Created At , and Last Modified At .
    DDL This section displays the code that defines the package header and provides the Edit, Download, Find , and Refresh buttons. You can click Edit to go to the package header editing page.
    Note
    Click the Edit icon to go to the PL object editing page.

    Package Body tab

    On the program package management page, click the Package Body tab. The following information is displayed:

    Section
    Description
    Basic Information This section displays the basic information about the package header in fields such as Package Name , Created By , Created At , and Last Modified At .
    DDL This section displays the script that defines the function and provides the Edit , Find , and Refresh icons. Note Click the Edit icon to go to the PL object editing page.

    Package header/body editing page

    programpackage2

    Right-click the target object in the program package list. In the shortcut menu that appears, click Edit to go to the program package editing page. The code area of the editing page displays statements that define the program package. You can edit the statements. In addition, the toolbar provides the following buttons:

    Button
    Description
    Confirm Modification Click this button to apply the current modification.
    Compile Click this button to compile the statements on the current page. This button is available only on the package body editing page.
    Abort Click this button to abort the statement that is being executed.
    Debug Click this option to go to the debugging page, where you can debug the program package. PL object debugging is supported only when OBServer V2.2.70, V3.0.00, or a later version is connected.
    Format Click this button to apply the formatting, such as indentation, line break, and keyword highlighting, to the selected SQL statements or all the SQL statements in the current SQL window.
    Find and Replace You can enter text in the search field to find the specific content and enter text in the replacement field to replace the content found.
    Undo Click this button to undo the last operation.
    Redo Click this button to reverse an Undo operation.
    Case Sensitivity The system supports three configurations: All Uppercase , All Lowercase , and Capitalize First Letter . Click the corresponding button to convert the selected statements in the script to the corresponding capitalization format.
    Indent You can add indents to or delete indents from the statements that you selected.
    Comment You can click Add Comments to convert the statements that you select into comments or click Delete Comment to convert comments to SQL statements.
    IN Value Conversion Click this button to convert the copied rows or columns into the specified format during queries. After you paste the copied data to the SQL editing area, select the copied data and click IN Value Conversion to convert it into the in('A','B') format. * Column values are separated with line breaks. * Row values are separated with spaces or tabs.

    Previous topic

    Create a program package
    Last

    Next topic

    Overview
    Next
    What is on this page
    Structure tree
    Management actions
    Shortcut function
    Right-click function
    Package Header tab
    Package Body tab
    Package header/body editing page