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

    ALL_COLL_TYPES

    Last Updated:2026-04-02 06:23:58  Updated
    share
    What is on this page
    Purpose
    Columns
    Sample query
    References

    folded

    share

    Note

    This view is available starting with V2.2.30.

    Purpose

    This view lists the user-defined collection types available in the database. The columns in this view are the same as those in DBA_COLL_TYPES.

    Applicability

    This view is applicable only to OceanBase Database in Oracle-compatible mode.

    Columns

    Column
    Type
    Nullable
    Description
    OWNER VARCHAR2(128) NO The owner of the object.
    TYPE_NAME VARCHAR2(64) NO The name of the type.
    COLL_TYPE VARCHAR2(10) NO The collection type. Valid values:
    • VARYING
    • ARRAY
    • NESTED TABLE
    UPPER_BOUND NUMBER(38) YES The maximum size of the collection for VARYING.
    ELEM_TYPE_MOD VARCHAR2(7) YES This column is not supported. The default value is NULL.
    ELEM_TYPE_OWNER VARCHAR2(128) YES The owner of the collection element type.
    ELEM_TYPE_NAME VARCHAR2(324) YES The name of the collection element type.
    LENGTH NUMBER(38) YES The length of the collection element type.
    NUMBER_PRECISION NUMBER(38) YES The precision of the collection element type.
    SCALE NUMBER(38) YES The length of the data on the right side of the decimal point of the collection element type.
    CHARACTER_SET_NAME CHAR(7) YES The character set of the collection element type.
    ELEM_STORAGE CHAR(3) YES This column is not supported. The default value is NULL.
    NULLS_STORED CHAR(1) YES This column is not supported. The default value is NULL.

    Sample query

    Query the user-defined collection types accessible to the current user.

    obclient [SYS]> SELECT * FROM SYS.ALL_COLL_TYPES;
    

    The query result is as follows:

    +-------+---------------------+-----------+-------------+---------------+-----------------+----------------+--------+------------------+-------+--------------------+--------------+--------------+
    | OWNER | TYPE_NAME           | COLL_TYPE | UPPER_BOUND | ELEM_TYPE_MOD | ELEM_TYPE_OWNER | ELEM_TYPE_NAME | LENGTH | NUMBER_PRECISION | SCALE | CHARACTER_SET_NAME | ELEM_STORAGE | NULLS_STORED |
    +-------+---------------------+-----------+-------------+---------------+-----------------+----------------+--------+------------------+-------+--------------------+--------------+--------------+
    | SYS   | DBMS_XA_XID_ARRAY   | TABLE     |          -1 | NULL          | SYS             | DBMS_XA_XID    |     -1 |               -1 |    -1 | CHAR_CS            | YES          | B            |
    | SYS   | ODCIRIDLIST         | TABLE     |       32767 | NULL          | NULL            | VARCHAR2       |   5072 |                2 |    -1 | CHAR_CS            | YES          | B            |
    | SYS   | ODCINUMBERLIST      | TABLE     |       32767 | NULL          | NULL            | NUMBER         |     -1 |               -1 |   -85 | CHAR_CS            | YES          | B            |
    | SYS   | ODCIVARCHAR2LIST    | TABLE     |       32767 | NULL          | NULL            | VARCHAR2       |   4000 |                2 |    -1 | CHAR_CS            | YES          | B            |
    | SYS   | ODCIDATELIST        | TABLE     |       32767 | NULL          | NULL            | DATE           |     -1 |               19 |     0 | CHAR_CS            | YES          | B            |
    | SYS   | ODCIGRANULELIST     | TABLE     |       65535 | NULL          | NULL            | NUMBER         |     -1 |               -1 |   -85 | CHAR_CS            | YES          | B            |
    | SYS   | XMLSEQUENCE         | TABLE     |       32767 | NULL          | SYS             | XMLTYPE        |     -1 |               -1 |    -1 | CHAR_CS            | YES          | B            |
    | SYS   | SDO_ELEM_INFO_ARRAY | TABLE     |     1048576 | NULL          | NULL            | NUMBER         |     -1 |               -1 |   -85 | CHAR_CS            | YES          | B            |
    | SYS   | SDO_ORDINATE_ARRAY  | TABLE     |     1048576 | NULL          | NULL            | NUMBER         |     -1 |               -1 |   -85 | CHAR_CS            | YES          | B            |
    +-------+---------------------+-----------+-------------+---------------+-----------------+----------------+--------+------------------+-------+--------------------+--------------+--------------+
    9 rows in set
    

    References

    • Query all user-defined collection types in the current tenant: DBA_COLL_TYPES

    • Query the user-defined collection types owned by the current user: USER_COLL_TYPES

    • For more information about collections, see Collections.

    Previous topic

    ALL_COL_PRIVS
    Last

    Next topic

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