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

    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.4.2
    iconOceanBase Database
    SQL - V 4.4.2
    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

    Dictionary views

    Last Updated:2026-04-02 06:23:56  Updated
    share
    What is on this page
    Overview
    Composition
    Views prefixed with ALL_
    Views prefixed with DBA_
    Views prefixed with USER_
    How dictionary views work
    Storage

    folded

    share

    In the Oracle-compatible mode of OceanBase Database, the data dictionary is a set of read-only tables that store management metadata of the databases.

    Overview

    In the Oracle-compatible mode, the data dictionary consists of system tables and dictionary views and is an important part of the database.

    Information about the database is stored in system tables. Only OceanBase Database can write data to and read data from these tables. You rarely directly access the system tables because they are internal implementation-oriented and not easy to read. In addition, external compatibility is not ensured between different versions.

    Dictionary views decode system table data into useful information to simplify the system table data. For example, a dictionary view decodes a username or table name as the filter condition for a join key and a WHERE clause. The views contain the names and descriptions of all objects in the data dictionary. Some views are accessible to all database users, whereas others are available only to the database administrator.

    A data dictionary contains at least the following information:

    • The definitions of schema objects in the database, including default values of columns and integrity constraints

    • The amount of storage space allocated to and used by the schema objects

    • The database usernames, user privileges and roles, and user-related audit information

    Composition

    The following table describes the content of different types of dictionary views.

    Prefix Privilege Content Description
    DBA_ Database administrator All objects Some views prefixed with DBA_ include additional columns that contain information useful to the database administrator.
    ALL_ All users Objects on which users have privileges Views prefixed with ALL_ include objects owned by users.
    USER_ All users Objects owned by users Views prefixed with USER_ usually do not include the OWNER column.

    Views prefixed with ALL_

    Views prefixed with ALL_ provide an overview of the database for users. In addition to the schema objects owned by users, these views return the schema objects on which users are publicly or explicitly granted privileges.

    Views prefixed with DBA_

    Views prefixed with DBA_ display all relevant information in the entire database. Only database administrators can access views prefixed with DBA_.

    Views prefixed with USER_

    Views that are most frequently used by regular database users are prefixed with USER_.

    These views have the following characteristics:

    • They reference the private environment of a user in the database, including metadata about schema objects created by the user and privileges granted by the user.

    • They display only rows related to a user and return a subset of the information in views prefixed with ALL_.

    • They contain the same columns as those in views prefixed with USER_ and DBA_. They also contain an additional column OWNER.

    • They can have abbreviated PUBLIC synonyms for convenience.

    How dictionary views work

    In the Oracle-compatible mode, the SYS user owns all base tables and user-accessible views of the data dictionary. An SYS user is automatically created when each Oracle-compatible tenant is created.

    During database operations, OceanBase Database reads the data dictionary to determine whether schema objects exist and whether users have required privileges to access them. In the Oracle-compatible mode, OceanBase Database continuously updates the data dictionary to reflect changes in database structures, auditing, privileges, and data.

    For example, assume that the hr user creates a table named interns. Then OceanBase Database adds new rows to the data dictionary. These rows reflect the new table, columns, segments, data blocks, and the privileges that the hr user has on the table. The new information is visible the next time the dictionary views are queried.

    Data in the base tables of the data dictionary is required for the normal operation of the Oracle-compatible mode of OceanBase Database. Only OceanBase Database writes or modifies data dictionary information. In the Oracle-compatible mode, users must not modify rows or schema objects contained in the SYS schema because such operations may compromise data integrity. The security administrator must strictly prevent such activities.

    Storage

    In OceanBase Database, the data dictionary that stores the metadata for each tenant as a whole is stored only in the dictionary information of each tenant.

    The data dictionary that stores the metadata for a specific tenant is stored in the dictionary table dedicated to the tenant. Therefore, each set of data dictionaries is stored in the dictionary table dedicated to its tenant.

    Previous topic

    Synonyms
    Last

    Next topic

    Performance views
    Next
    What is on this page
    Overview
    Composition
    Views prefixed with ALL_
    Views prefixed with DBA_
    Views prefixed with USER_
    How dictionary views work
    Storage