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

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the Al 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.5
    iconOceanBase Database
    SQL - V 4.3.5
    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

    ALTER INDEX

    Last Updated:2026-02-03 08:48:37  Updated
    share
    What is on this page
    Purpose
    Required privileges
    Syntax
    Parameters
    Examples
    References

    folded

    share

    Purpose

    You can use the AlTER INDEX statement to rename an existing index, modify the degree of parallelism (DOP) of queries on the index, or modify the index storage tablespace.

    Required privileges

    To execute the AlTER INDEX statement, you must have the ALTER ANY INDEX system privilege. For more information about privileges in OceanBase Database, see Privilege types in Oracle mode.

    Syntax

    ALTER INDEX [ schema.]index_name
        {  RENAME TO new_name
        | parallel_option
        | TABLESPACE tablespace_name
        };
    
    parallel_option:  
          PARALLEL [COMP_EQ] integer
        | NOPARALLEL   
    

    Parameters

    Parameter Description
    schema. The schema where the index is located. If schema. is omitted, the index is in your own schema by default.
    index_name The name of the index to be modified.
    new_name The new name of the index.
    parallel_option The DOP of queries on the index.
    • NOPARALLEL: enables serial execution, with a DOP of 1. This is the default value.
    • PARALLEL [COMP_EQ] integer: the DOP, which specifies the number of parallel threads used in parallel operations. The PARALLEL keyword specifies parallel processing of the index. COMP_EQ is an optional keyword that specifies the DOP constraint. integer specifies the DOP and is an integer greater than or equal to 1.
    tablespace_name The index storage tablespace.

    Examples

    • Assume that there is an index named index1 in the database. The following example shows how to rename it to index2:

       obclient> ALTER INDEX index1 RENAME TO index2;
      
    • Assume that there is an index named index3 in the database with a DOP of 3 for queries. The following example shows how to modify the DOP to 1:

       obclient> ALTER INDEX index3 NOPARALLEL;
      

    References

    • About indexes

    • Query indexes

    • Drop an index

    Previous topic

    ALTER EXTERNAL TABLE
    Last

    Next topic

    ALTER KEYSTORE
    Next
    What is on this page
    Purpose
    Required privileges
    Syntax
    Parameters
    Examples
    References