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

V3.4.0Enterprise Edition

  • Document Overview
  • What's New
    • What's New
  • Overview
    • What is ODC?
    • Benefits
    • Architecture
    • Features
    • Limits
  • Quick Start
    • Overview
    • Install ODC
    • Log on to ODC with an account
    • Create a private connection
  • Tutorials
    • Tips on the SQL Console
    • Create a connection
    • Export data
    • Import data
    • Debug a stored procedure
    • View the performance of an SQL statement
  • User Guide (Web ODC)
    • ODC homepage
    • Recycle bin
    • View operation records
    • Session management
    • Help center
    • Database objects
      • Table objects
        • Overview
        • Create a table
        • Table list
        • Manage table attributes
        • Manage table data
      • Trigger objects
        • Overview
        • Create a trigger
        • Manage triggers
      • Stored procedure objects
        • Overview
        • Create a stored procedure
        • Manage stored procedures
      • Package objects
        • Overview
        • Create a program package
        • Manage program packages
      • Function objects
        • Overview
        • Create a function
        • Manage functions
      • Type objects
        • Overview
        • Create a type
        • Manage types
      • Synonym objects
        • Create a synonym
        • Manage synonyms
        • Overview
      • View objects
        • Overview
        • Create a view
        • Manage views
      • Sequence objects
        • Overview
        • Create a sequence
        • Manage sequences
    • Public resource management
      • Overview
      • Quick start
      • Task process management
      • Manage operation records
      • Data desensitization management
      • System settings
      • Resource permissions
        • Manage public connections
        • Manage resource groups
        • Manage roles
        • Manage users
    • Use the workspace
      • Overview
      • SQL window
      • Anonymous block window
      • Command-line window
      • Stored scripts
      • Snippet
    • Task management
      • Overview
      • Import tasks
      • Export tasks
      • Data mocking tasks
      • Database change tasks
      • Permission application tasks
    • Use tools
      • Data export and import
        • Overview
        • Export and import formats
        • Batch export and import
        • Single table export and import
      • Data mocking
      • Database changes
    • Log on to ODC
      • Log on to ODC with an account
      • Change the password
    • Connect to a database
      • Create a private connection
      • Manage private connections
  • User Guide (Client ODC)
    • Install ODC
    • ODC homepage
    • Recycle bin
    • View operation records
    • Session management
    • Help center
    • Connect to a database
      • Establish a connection
      • Manage connections
    • Database objects
      • Type objects
        • Overview
        • Create a type
        • Manage types
      • Synonym objects
        • Overview
        • Create a synonym
        • Manage synonyms
      • Trigger objects
        • Overview
        • Create a trigger
        • Manage triggers
      • Table objects
        • Overview
        • Create a table
        • Table list
        • Manage table attributes
        • Manage table data
      • Stored procedure objects
        • Overview
        • Create a stored procedure
        • Manage stored procedures
      • Package objects
        • Overview
        • Create a program package
        • Manage program packages
      • Function objects
        • Overview
        • Create a function
        • Manage functions
      • Sequence objects
        • Overview
        • Create a sequence
        • Manage sequences
      • View objects
        • Overview
        • Create a view
        • Manage views
    • Use the workspace
      • Overview
      • SQL window
      • Anonymous block window
      • Command-line window
      • Stored scripts
      • Snippet
    • Task management
      • Overview
      • Import tasks
      • Export tasks
      • Data mocking tasks
      • Database Change
    • Use tools
      • Data mocking
      • Asynchronous execution
      • Data export and import
        • Overview
        • Export and import formats
        • Batch export and import
        • Single table export and import
  • Deployment Guide
    • Deployment overview
    • Preparations before deployment
    • Deployment verification
    • Deploy a single ODC node
      • Deployment process
      • Load and run an ODC image
    • Deploy ODC in high availability mode
      • Deployment process
      • Load and run an ODC image
      • Deploy SSL certificate
      • Deploy the NGINX proxy
      • Configure certificate trust
  • Upgrade Guide
    • Overview
    • Preparations before upgrade
    • Upgrade verification
    • Rollback after upgrade failed
    • Upgrade high-availability
      • Upgrade process
      • Stop ODC of the earlier version
      • Load and run an ODC image
      • Upgrade NGINX image
    • Upgrade single-node ODC
      • Upgrade process
      • Stop ODC of the earlier version
      • Load and run an ODC image
  • FAQ

Download PDF

Document Overview What's NewWhat is ODC? Benefits Architecture Features Limits Overview Install ODC Log on to ODC with an account Create a private connection Tips on the SQL Console Create a connection Export data Import data Debug a stored procedure View the performance of an SQL statement ODC homepageRecycle bin View operation records Session management Help center Overview Quick start Task process managementManage operation records Data desensitization managementSystem settings Overview SQL windowAnonymous block window Command-line window Stored scripts Snippet Overview Import tasks Export tasks Data mocking tasks Database change tasks Permission application tasksData mocking Database changes Log on to ODC with an account Change the password Create a private connection Manage private connections Install ODC ODC homepage Recycle bin View operation records Session management Help center Establish a connection Manage connections Overview SQL windowAnonymous block window Command-line window Stored scripts Snippet Overview Import tasks Export tasks Data mocking tasks Database Change Data mocking Asynchronous execution Deployment overview Preparations before deployment Deployment verificationDeployment process Load and run an ODC image Deployment process Load and run an ODC image Deploy SSL certificate Deploy the NGINX proxy Configure certificate trust Overview Preparations before upgrade Upgrade verification Rollback after upgrade failed Upgrade process Stop ODC of the earlier version Load and run an ODC image Upgrade NGINX image Upgrade process Stop ODC of the earlier version Load and run an ODC image FAQ
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 Developer Center
  3. V3.4.0
iconOceanBase Developer Center
V 3.4.0Enterprise Edition
  • 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
Community Edition
  • V 4.1.0
  • V 4.0.0
  • V 3.3.2
  • V 3.2.2
Enterprise Edition
  • V 4.1.3
  • V 3.4.0

Overview

Last Updated:2026-04-13 07:31:00  Updated
share
What is on this page
share

A package is a combination of related PL programming elements, such as functions, procedures, variables, and cursors. Packages are similar to classes in Java. Variables in a package are similar to member variables in a class, and functions and procedures are similar to methods in a Java class. A package is used to group identical or similar objects, to facilitate maintenance and management and improve development efficiency and performance. Notice

After you connect OceanBase Developer Center (ODC) to OceanBase Database V2.2.20 or a later version in Oracle mode, you can create package objects in ODC. The MySQL mode does not support this feature.

Log on to ODC and click the name of the target connection in Oracle mode to go to the corresponding connection management page. You can click package in the left-side navigation pane to get a list of packages. Double-click a package name in the package list to go to the package management page. On this page, you can view information such as the basic information and codes of the package header and package body.

This chapter describes in different topics the operations you can perform on package objects in ODC.

  • Create a package

  • Manage packages

Previous topic

Manage sequences
Last

Next topic

Create a program package
Next