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

V3.2.3Enterprise Edition

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive 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 Cloud Platform
    3. V3.2.3
    iconOceanBase Cloud Platform
    V 3.2.3Enterprise Edition
    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
    • V 4.4.2
    • V 4.3.6
    • V 4.3.5
    • V 4.3.4
    • V 4.3.3
    • V 4.3.2
    • V 4.3.1
    • V 4.3.0
    • V 4.2.2
    • V 4.0.0 and earlier

    ob_cluster_exists_index_fail_table

    Last Updated:2023-08-15 11:20:56  Updated
    Share
    What is on this page
    Description
    Principle
    Alert rule
    Alert information
    Alert templates
    Impact on the system
    Possible causes
    Suggested solutions

    folded

    Share

    Description

    This alert is triggered when a table with an indexing failure exists in the OceanBase cluster.

    Principle

    The following table describes the key parameters that are involved in the monitoring and alerting logic.

    Parameter
    Value
    Metric ob_cluster_index_fail_count
    Source SQL: javascript select /*+ READ_CONSISTENCY(WEAK) QUERY_TIMEOUT(100000000)*/ count(*) from gv$table where table_type in (5) and index_status in (5, 6);
    Collected metric index_fail_count
    Metric expression sum(index_error_count{metric_group="index_error",@LABELS}) by (@GBLABELS)
    Collection cycle 60 seconds

    The value of the metric ob_cluster_index_fail_count indicates the number of tables with an indexing failure in the OceanBase cluster. When the value exceeds the threshold, this alert is triggered. The default threshold is 0.

    Alert rule

    Metric
    Default threshold
    Duration
    Detection cycle
    Time before clearance
    ob_cluster_index_fail_count 0 0 seconds 60 seconds 5 minutes

    Alert information

    Trigger method
    Alert level
    Scope
    Metric expression Critical Cluster

    Alert templates

    • Overview: ${alarm_target} ${alarm_name}

    • Details: ${alarm_target} ${alarm_name}. The number of tables with an indexing failure is ${value}.

    • Overview example: ob_cluster=C1-1000. Tables with an indexing failure exist in the OceanBase cluster.

    • Details example: ob_cluster=C1-1000. The number of tables with an indexing failure in the OceanBase cluster is 1.0.

    Impact on the system

    The failure of index creation makes it impossible to optimize SQL execution based on the index.

    Possible causes

    This problem is commonly found when an error occurred while creating an index. It occurs in the following scenarios:

    • Failure to create a normal index. This error is caused by an incorrect cluster status.

    • Failure to create a unique index. OceanBase Database creates indexes asynchronously. If data in the table is not unique, an error is returned with a delay. In this case, the DBA must collaborate with the customer to verify whether the data is unique and meets the requirement of the index.

    Suggested solutions

    1. Find the data with an indexing failure.

      1. Run the following command to find the index that failed to be created:

        -- Applies to OceanBase Database 1.4.x
        SELECT tenant_id, database_id, table_id, `table_name` AS `index_name`,  data_table_id, index_status from __all_table where table_type=5 and index_status not in (1, 2, 3) LIMIT 10;
        
        -- Applies to OceanBase Database 2.x
        SELECT tenant_id, database_id, table_id, `table_name` AS `index_name`,  data_table_id, index_status from __all_virtual_table where table_type=5 and index_status not in (1, 2, 3) LIMIT 10;
        

        Find the index_name and data_table_id.

      2. Find the name of the table with the indexing failure based on data_table_id.

        -- Use __all_database for OceanBase Database 1.4.x and __all_virtual_database for OceanBase Database 2.x.
        
        > SELECT t2.database_name, t1.table_name  from __all_table t1 join __all_database t2 on t1.database_id=t2.database_id where t2.tenant_id=1014 and t1.table_id=1114904790614901;
        +---------------+---------------+
        | database_name | table_name    |
        +---------------+---------------+
        | obsink        | question_dest |
        +---------------+---------------+
        1 row in set (0.05 sec)
        
      3. Run the following commands to find the index that failed to be created.

        # MySQL mode #
        obclient> SHOW INDEX FROM table_name;
        
        # Oracle mode
        obclient> SELECT * FROM USER_IND_COLUMNS WHERE table_name='table_name';
        
    2. Check whether the cluster status is normal.

    3. Delete and recreate the index.

      • For more information about how to delete an index, see Delete an index in the OceanBase Database documentation of the corresponding version.

      • For more information about how to create an index, see Create an index in the OceanBase Database documentation of the corresponding version.

    Previous topic

    ob_cluster_exists_inactive_server
    Last

    Next topic

    ob_cluster_frozen_version_delta_over_threshold
    Next
    What is on this page
    Description
    Principle
    Alert rule
    Alert information
    Alert templates
    Impact on the system
    Possible causes
    Suggested solutions