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

    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.3
    iconOceanBase Database
    SQL - V 4.3.3
    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

    DBA_OB_TABLEGROUPS

    Last Updated:2024-12-02 03:48:27  Updated
    share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    share

    Note

    This view was introduced in OceanBase Database V4.0.0.

    Purpose

    The DBA_OB_TABLEGROUPS view displays the metadata of table groups, mainly the partition information of the table groups.

    Note

    The partitioning attribute column in this view is meaningless in OceanBase Database V4.2.0 and later and its value is NONE or NULL by default.

    Columns

    Column Type Nullable? Description
    TABLEGROUP_NAME VARCHAR2(128) NO The name of the table group.
    PARTITIONING_TYPE VARCHAR2(13) NO The partitioning type of the partitioned table group. Valid values:
  • NONE: indicates non-partitioning.
  • HASH: indicates HASH partitioning (with a single partitioning key).
  • KEY: indicates KEY partitioning.
  • RANGE: indicates RANGE partitioning (with a single partitioning key).
  • RANGE COLUMNS: indicates RANGE COLUMNS partitioning.
  • LIST: indicates LIST partitioning (with a single partitioning key).
  • LIST COLUMNS: indicates LIST COLUMNS partitioning.
  • UNKNOWN: indicates an unknown type.
  • SUBPARTITIONING_TYPE VARCHAR2(13) NO The subpartitioning type of the partitioned table group. Valid values:
  • NONE: indicates non-subpartitioning.
  • HASH: indicates HASH partitioning (with a single partitioning key).
  • KEY: indicates KEY partitioning.
  • RANGE: indicates RANGE partitioning (with a single partitioning key).
  • RANGE COLUMNS: indicates RANGE COLUMNS partitioning.
  • LIST: indicates LIST partitioning (with a single partitioning key).
  • LIST COLUMNS: indicates LIST COLUMNS partitioning.
  • UNKNOWN: indicates an unknown type.
  • PARTITION_COUNT NUMBER NO The number of partitions in the partitioned table group. For a non-partitioned table group, the value is NULL.
    DEF_SUBPARTITION_COUNT NUMBER NO The number of subpartitions in the partitioned table group. For a non-subpartitioned table group, the value is NULL.
    PARTITIONING_KEY_COUNT NUMBER NO The number of partitioning keys for the partitioned table group. For a non-partitioned table group, the value is NULL.
    SUBPARTITIONING_KEY_COUNT NUMBER NO The number of subpartitioning keys for the partitioned table group. For a non-subpartitioned table group, the value is NULL.
    SHARDING VARCHAR2(10) NO The SHARDING attribute of the table group. Valid values:
    • NONE: For a table group with the SHARDING attribute set to NONE, all partitions of all tables in the table group are aggregated on the same server, and no limitations are imposed on tables to be added to the table group.
    • PARTITION: For a table group with the SHARDING attribute set to PARTITION, the data of each table in the table group is scattered by partition. For a subpartitioned table in the table group, all subpartitions in each partition are aggregated together.
    • ADAPTIVE: For a table group with the SHARDING attribute set to ADAPTIVE, the data of each table in the table group is adaptively scattered. In other words, data in partitioned tables is scattered by partition, and data in subpartitioned tables is scattered by subpartition in each partition.

    Note

    This column is available in OceanBase Database V4.2.0 and later.

    Sample query

    1. Create a table group named tblgroup1.

      obclient [SYS]> CREATE TABLEGROUP tblgroup1 SHARDING = 'PARTITION';
      
    2. Query the SHARDING attribute of the TBLGROUP1 table group.

      obclient [SYS]> SELECT TABLEGROUP_NAME, SHARDING FROM SYS.DBA_OB_TABLEGROUPS WHERE tablegroup_name = 'TBLGROUP1';
      

      The query result is as follows:

      +-----------------+-----------+
      | TABLEGROUP_NAME | SHARDING  |
      +-----------------+-----------+
      | TBLGROUP1       | PARTITION |
      +-----------------+-----------+
      1 row in set
      

    References

    Overview

    Previous topic

    DBA_OB_TABLEGROUP_TABLES
    Last

    Next topic

    DBA_OB_TABLET_REPLICAS
    Next
    What is on this page
    Purpose
    Columns
    Sample query
    References