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

V4.3.6

    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 Cloud Platform
    3. V4.3.6
    iconOceanBase Cloud Platform
    V 4.3.6
    • 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:2026-04-03 03:16:01  Updated
    share
    What is on this page
    Alert description
    Alert principle
    Alert rule
    Alert information
    Alert template
    Impact on the system
    Possible causes
    Suggested solutions

    folded

    share

    Alert description

    This alert is triggered when the OceanBase cluster has tables with an indexing failure.

    Alert principle

    The following table lists the key parameters involved in the monitoring logic of this alert.

    Parameter
    Value
    Metric ob_cluster_index_fail_count
    Source
    • For OceanBase Database versions earlier than V4.0: select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) QUERY_TIMEOUT(100000000) */ count(*) as cnt from gv$table where table_type in (5) and index_status in (5, 6, 7)
    • For OceanBase Database V4.0 and later: select /*+ MONITOR_AGENT QUERY_TIMEOUT(100000000) */ count(*) as cnt from CDB_INDEXES where status in ('ERROR','UNUSABLE')
    Collected metric index_fail_count
    Metric expression sum(ob_index_error_num{@LABELS}) by (@GBLABELS)
    Collection cycle 60 seconds

    The metric ob_cluster_index_fail_count indicates the number of tables with an indexing failure in the OceanBase cluster. An alert is triggered when the value exceeds the threshold (which is 0 by default).

    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 template

    • Alert overview

      • Template: ${alarm_target} ${alarm_name}
      • Example: ob_cluster=obcluster-1 The OceanBase cluster has tables with an indexing failure.
    • Alert details

      • Template: Cluster: ${ob_cluster_name}, Alert: ${alarm_name}. The number of tables with an indexing failure is ${value}.
      • Example: Cluster: obcluster-1, Alert: The OceanBase cluster has tables with an indexing failure. The number of tables with an indexing failure is 1.0.
    • Alert recovery

      • Template: Alert: ${alarm_name}. The number of tables with abnormal indexes in the OceanBase cluster: ${value}
      • Example: Alert: The OceanBase cluster has tables with an indexing failure. The number of tables with abnormal indexes in the OceanBase cluster: 0
    • Alert details

    Impact on the system

    Failed index creation prevents SQL execution from being optimized based on the index, thereby failing to demonstrate the execution efficiency.

    Possible causes

    This issue commonly occurs during the execution of index creation tasks when the index cannot be established. Common scenarios include:

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

    • Failed creation of a unique index: OceanBase creates indexes asynchronously. If the data does not meet the uniqueness constraints, errors are reported later. In this case, DBAs and business teams need to collaborate to verify data uniqueness and index requirements.

    Suggested solutions

    1. Find the failed index information by using the following method:

      1. Run the following command to find the failed index.

        -- For OceanBase Database versions earlier than V4.0:
        select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) QUERY_TIMEOUT(100000000) */ count(*) as cnt from gv$table where table_type in (5) and index_status in (5, 6)
        
        -- For OceanBase Database V4.0 and later:
        select /*+ MONITOR_AGENT QUERY_TIMEOUT(100000000) */ count(*) as cnt from CDB_INDEXES where status in ('ERROR','UNUSABLE')
        

        Take the values of index_name (index name) and data_table_id (ID of the table to which the index belongs).

      2. Use the data_table_id (ID of the table to which the index belongs) to find the name of the table to which the index belongs.

        -- Note that OceanBase Database V2.x uses __all_virtual_database.
        
        > 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. Confirm that the cluster status is normal.

    3. Drop and recreate the index.

      • To drop an index, see Drop an index in the documentation of the corresponding OceanBase Database version.

      • To recreate an index, see Create an index in the documentation of the corresponding OceanBase Database version.

    Previous topic

    ob_cluster_exists_inactive_server OceanBase cluster has an inactive OBServer node
    Last

    Next topic

    ob_cluster_frozen_version_delta_over_threshold OceanBase cluster frozen version and baseline version delta exceeds threshold
    Next
    What is on this page
    Alert description
    Alert principle
    Alert rule
    Alert information
    Alert template
    Impact on the system
    Possible causes
    Suggested solutions