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

    View overview

    Last Updated:2026-04-02 06:23:56  Updated
    Share
    What is on this page
    OceanBase-specific views
    MySQL-compatible views
    Oracle-compatible views
    Oracle-compatible views in MySQL-compatible tenants
    Oracle-compatible views in the sys tenant
    References

    folded

    Share

    OceanBase Database V4.x has five view systems: OceanBase-specific views, MySQL-compatible views, Oracle-compatible views, Oracle-compatible views in MySQL-compatible tenants, and Oracle-compatible views in the sys tenant. The following table describes the view systems.

    Category
    Type
    Format
    OceanBase-specific views Data dictionary views DBA_OB_*
    CDB_OB_*
    Dynamic performance views GV$OB_*
    V$OB_*
    MySQL-compatible views Data dictionary views information_schema.*
    mysql.*
    Oracle-compatible views Data dictionary views SYS.DBA_*, SYS.USER_*, SYS.ALL_*
    Dynamic performance views SYS.V$*, SYS.GV$*
    Oracle-compatible views in MySQL-compatible tenants Data dictionary views oceanbase.DBA_*
    Dynamic performance views oceanbase.V$*, oceanbase.GV$*
    Oracle-compatible views in the sys tenant Data dictionary views oceanbase.CDB_*

    OceanBase-specific views

    OceanBase-specific views include data dictionary views and dynamic performance views.

    • Data dictionary views are named in the DBA_OB_* or CDB_OB_* format:

      • DBA_OB_*: Views visible only to the sys tenant display information about database objects managed by the sys tenant. Views visible to all tenants display information about tenant-level database objects specific to OceanBase Database.
      • CDB_OB_*: Views of this type display information about database objects of all tenants in the sys tenant. Generally, a view named in this format corresponds to a tenant-level data dictionary view named in the DBA_OB_* format.
    • Dynamic performance views are named in the GV$OB_* or V$OB_* format:

      • GV$OB_*: Views of this type display the running status and performance metrics of the entire cluster. They provide global status information and are accessible in the entire cluster. The information returned varies based on the access privileges:
        • If you query a view from the sys tenant, information about all tenants is returned.
        • If you query a view from a user tenant, information about the current tenant is returned.
      • V$OB_*: Views of this type display the running status and performance metrics of only the node to which the client connects. They provide status information about only the node to which the client connects. To obtain status information about other nodes, query GV$OB_* views.

    MySQL-compatible views

    MySQL-compatible views include only two types of data dictionary views:

    • information_schema.*: Views of this type display database metadata of MySQL-compatible tenants, including the names of databases or tables, data types of columns, and access privileges.
    • mysql.*: Views of this type provide access to data dictionary tables that store metadata of database objects and system tables intended for other purposes. For example, the mysql.help_* view provides some help information on the server side, the mysql.time_zone_* view displays information related to the time zone, and the mysql.user and mysql.db views record some information related to user privileges.

    Oracle-compatible views

    Oracle-compatible views include data dictionary views and dynamic performance views.

    • Data dictionary views are named in the SYS.DBA_*, SYS.USER_*, or SYS.ALL_* format:

      • SYS.DBA_*: These views display all relevant information in the entire database. Only database administrators can access views prefixed with DBA_.
      • SYS.ALL_*: These views 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.
      • SYS.USER_*: Views of this type display only rows related to users, which are a subset of the SYS.ALL_* views. These views contain the same columns as other views but do not include the OWNER column (it is implicit).
    • Dynamic performance views are named in the SYS.V$* or SYS.GV$* format:

      • SYS.V$*: Views of this type display the running status and performance metrics of only the node to which the client connects. They provide status information about only the node to which the client connects. To obtain status information about other nodes, query SYS.GV$* views.
      • SYS.GV$*: Views of this type display the running status and performance metrics of the entire cluster. They provide global status information and are accessible in the entire cluster. The information returned varies based on the access privileges:
        • If you query a view from the sys tenant, information about all tenants is returned.
        • If you query a view from a user tenant, information about the current tenant is returned.

    Oracle-compatible views in MySQL-compatible tenants

    Oracle-compatible views in MySQL-compatible tenants include data dictionary views and dynamic performance views.

    • Data dictionary views are named in the oceanbase.DBA_* format:

      These data dictionary views display metadata and performance metric information of a database, which are similar to DBA_* views in an Oracle database. These views typically provide DBA-level access to information about all objects and system status in the database.

    • Dynamic performance views are named in the oceanbase.V$* or oceanbase.GV$* format:

      • oceanbase.V$*: Views of this type display performance and status information about the current OBServer node. They are accessible only on the current OBServer node.
      • oceanbase.GV$*: Views of this type display performance and status information of the entire cluster, which can be accessed across the entire cluster.

    Oracle-compatible views in the sys tenant

    Oracle-compatible views in the sys tenant contain only data dictionary views named in the oceanbase.CDB_* format: Views of this type provide information about some database objects in the sys tenant and user tenants, including object information, partition information, and table information. Oracle databases provide standard data dictionary views for these database objects. These views can be accessed across tenants. For example, CDB_OBJECTS can display the information about database objects of all tenants.

    References

    • OceanBase-specific views
    • Oracle-compatible views

    Previous topic

    Standard views
    Last

    Next topic

    OceanBase-specific views
    Next
    What is on this page
    OceanBase-specific views
    MySQL-compatible views
    Oracle-compatible views
    Oracle-compatible views in MySQL-compatible tenants
    Oracle-compatible views in the sys tenant
    References