OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

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

A unified distributed database ready for your transactional, analytical, and AI workloads.

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.0

    Download PDF

    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 Database
    3. SQL
    4. V4.3.0
    iconOceanBase Database
    SQL - V 4.3.0
    SQL
    KV
    • 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

    Database object types

    Last Updated:2026-04-15 08:30:01  Updated
    share
    What is on this page
    share

    Database objects, also known as schema objects, belong to a schema. A schema is a collection of database objects. A user has a default schema, and the schema name is the same as the username. A user can access and use schemas of other users. When a user accesses an object in a schema, the system automatically adds the default schema name to the object name if the schema to which the object belongs is not specified.

    The following table describes the database objects that are supported by the Oracle mode of OceanBase Database.

    Object type Description
    Table The most basic storage unit in a database. A table is organized into rows and columns.
    View A view is a virtual table whose content is defined by a query. Like a real table, a view consists of columns with names and rows of data. However, a view does not exist as a stored collection of data values in the database. The row and column data come from the tables referenced by the query that defines the view, and it is dynamically generated when the view is referenced.
    Index An index is a structure to sort data in one or more columns of a database table in a specific order. It enables you to quickly access specific information in the database table. For example, an index enables you to quickly search for a specified employee by last name, which is more efficient than searching all rows in a table.
    Partition OceanBase Database can split the data of a table into different groups based on some rules. Data in the same group is stored in the same physical area. A table whose data is split into different groups is called a partitioned table. Tables in OceanBase Database are horizontally partitioned. Each partition contains some data rows. A table can be partitioned by specified partitioning methods such as hash partitioning, range partitioning, and list partitioning based on the mapping relationships between data and partitions. Each partition can be divided into several subpartitions from different dimensions. For example, you can partition the transaction table into several hash partitions based on the user IDs. Then, you can partition each hash partition into several range partitions based on the transaction time.
    Sequence A sequence is a serial number generator that can automatically generate serial numbers. A serial number is a set of numeric values at equal intervals. Each sequence object instance can generate a data sequence. This ensures that all generated data is different in either a standalone or multi-host environment. Sequences provide a variety of options to meet your requirements in different scenarios, while ensuring that all data is distinct. For example, a sequence ensures that data is incrementally generated in chronological order to prevent a significant difference between data. Higher requirements for sequences result in higher performance costs for the database.
    Synonym A synonym is an alias for a database object. It is used to simplify and enhance the security of access to a schema object. The Oracle mode of OceanBase Database translates a synonym into the name of the corresponding schema object. Similar to views, synonyms do not consume storage space, and only the synonym definitions are stored in the data dictionary. The database administrator can define synonyms for most database objects in the database, for example, tables, views, and sequences.

    Notice
    Synonyms are not supported for procedural language (PL) objects such as stored procedures and packages.
    Trigger A trigger is a set of stored procedures that is automatically invoked by the system when a specified event occurs. Unlike regular stored procedures, triggers can be enabled or disabled and cannot be explicitly invoked.
    PL object (PL subprogram and package) PL stands for procedural language. It is an extension to SQL. PL incorporates characteristics of programming languages based on SQL statements, organizes data operations and query statements in PL code, and implements complex features by using logic judgment and loops. The basic unit of the PL source program is block, which consists of declarations and statements. Variables and constants can be declared in internal classes and used in expressions. A PL program package consists of PL types, variables, constants, subprograms, cursors, and exceptions that are logically relevant.

    Previous topic

    Overview
    Last

    Next topic

    Database object storage
    Next