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.6.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 & 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.6.0
    iconOceanBase Database
    SQL - V 4.6.0
    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

    Overview

    Last Updated:2026-05-07 11:26:24  Updated
    Share
    What is on this page
    Share

    Database objects are essential components of a database, including tables, indexes, views, triggers, and sequences. OceanBase Database provides database object management capabilities based on its compatibility with both MySQL and Oracle modes.

    This chapter describes the operations of the following database objects:

    Database Object Type
    Supported Mode
    Database Object Management Description
    Database (Database) MySQL mode Describes how to create, view, modify, and delete databases. For more information, see Create a database.
    Table (Table) MySQL/Oracle mode Describes how to create, modify, delete, lock, and clear tables, as well as define column attributes and set constraint types. For more information, see About tables (MySQL mode) and About tables (Oracle mode).
    External Table (External Table) MySQL/Oracle mode Describes how to create external tables, create external table partitions, manage external files, and map data types. For more information, see About external tables (MySQL mode) and About external tables (Oracle mode).
    Partition (Partition) MySQL/Oracle mode Describes how to create, split, and dynamically manage partitions, as well as adjust partition rules, add, and delete partitions. For more information, see Partition overview (MySQL mode) and Partition overview (MySQL mode).
    Table Group (TableGroup) MySQL/Oracle mode Describes how to create, view, add tables, modify SHARDING attributes, and delete table groups. For more information, see About table groups (MySQL mode) and About table groups (Oracle mode).
    Index (Index) MySQL/Oracle mode Describes how to create, view, monitor, and delete indexes, as well as support for function indexes. For more information, see About indexes (MySQL mode) and About indexes (Oracle mode).
    View (View) MySQL/Oracle mode Describes how to create, modify, and delete normal views. For more information, see Manage normal views (MySQL mode) and Manage normal views (Oracle mode).
    Materialized View (Materialized View) MySQL/Oracle mode Describes how to create, refresh, query rewrite, modify attributes, and isolate resources for materialized views. For more information, see Materialized views overview (MySQL mode) and Materialized views overview (Oracle mode).
    Sequence (Sequence) MySQL/Oracle mode Describes how to create, view, modify, and delete sequences. For more information, see Create a sequence (MySQL mode) and Manage sequences (Oracle mode).
    Trigger (Trigger) MySQL/Oracle mode Describes how to create, view, and delete triggers. For more information, see Overview (MySQL mode) and Overview (Oracle mode).
    DBLink (database link) MySQL/Oracle mode Describes how to create, view, and delete a DBLink. For more information, see Create a DBLink (MySQL mode) and Create a DBLink (Oracle mode).
    Catalog (data catalog) MySQL mode Describes how to create, view, and delete a catalog. For more information, see Overview of Catalog.
    Hotspot cache policy (storage_cache_policy) MySQL mode Describes how to create, modify, and manage a hotspot cache policy. For more information, see Overview of custom hotspot cache policies.
    Synonym Oracle mode Describes how to create and delete a synonym. For more information, see Manage synonyms.
    Directory Oracle mode Describes how to create and delete a directory. For more information, see Manage directories.

    Previous topic

    View the disk space used by a tenant or table
    Last

    Next topic

    Create a database
    Next