Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 521589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:15:57+00:00 2026-05-13T08:15:57+00:00

if we use the ALTER TABLE RENAME PARTITION statement to rename the existing partitions

  • 0

if we use the ALTER TABLE RENAME PARTITION statement to rename the existing partitions in an Oracle table, do we need to recreate the local partitioned indexes with newly changed partition names?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:15:57+00:00Added an answer on May 13, 2026 at 8:15 am

    No, renaming partitions does not affect locally partitioned indexes. You can easily test that:

    --create table
    CREATE TABLE t (
      c1 DATE,
      c2 NUMBER(3))
    partition by range (c1) (
      partition t_nov values less than (
        to_date('01-12-2009 00:00:00', 'DD-MM-YYYY HH24:MI:SS')
      ),
      partition t_dec values less than (
        to_date('01-01-2010 00:00:00', 'DD-MM-YYYY HH24:MI:SS')
      )
    )
    /
    
    --create index
    create index idx_t on t (c1) local (partition t_nov, partition t_dec);
    
    --insert some rows
    insert into t values (sysdate, 1);
    insert into t values (sysdate, 1);
    insert into t values (sysdate, 1);
    insert into t values (sysdate, 1);
    insert into t values (sysdate, 1);
    insert into t values (sysdate, 1);
    insert into t values (sysdate, 1);
    insert into t values (sysdate, 1);
    insert into t values (sysdate, 1);
    insert into t values (sysdate, 1);
    
    --gather statistics
    exec dbms_stats.gather_table_stats('SYSTEM', 'T');
    
    --set autotrace on, to determine that index is used
    set autotrace on
    
    --select indexed column 
    select c1 from t where c1 < sysdate+1;
    
    --------------------------------------------------------------------------------------------------
    | Id  | Operation                | Name  | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    --------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT         |       |    11 |    88 |     1   (0)| 00:00:01 |       |       |
    |   1 |  PARTITION RANGE ITERATOR|       |    11 |    88 |     1   (0)| 00:00:01 |     1 |   KEY |
    |*  2 |   INDEX RANGE SCAN       | IDX_T |    11 |    88 |     1   (0)| 00:00:01 |     1 |   KEY |
    --------------------------------------------------------------------------------------------------
    
    --rename partition
    alter table t rename partition t_dec to t_december;
    Table altered.
    
    
    select c1 from t where c1 < sysdate+1;
    
    --------------------------------------------------------------------------------------------------
    | Id  | Operation                | Name  | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    --------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT         |       |    11 |    88 |     1   (0)| 00:00:01 |       |       |
    |   1 |  PARTITION RANGE ITERATOR|       |    11 |    88 |     1   (0)| 00:00:01 |     1 |   KEY |
    |*  2 |   INDEX RANGE SCAN       | IDX_T |    11 |    88 |     1   (0)| 00:00:01 |     1 |   KEY |
    --------------------------------------------------------------------------------------------------
    

    The index is still used, after renaming the partition

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Rename Oracle Table or View I know you can use ALTER TABLE
In Oracle, is it possible to use syntax like alter table 'TBL_NM' modify constraint
When you do an ALTER TABLE <name> You can use ALTER COLUMN so you
i want to use alter table but the syntax posted here: http://dev.mysql.com/doc/refman/5.1/en/alter-table.html is very
I need to add a column to an existing table in my live sql
alter table emp modify mgr; Are previous constraints dropped/retained? What is the use of
I have table with few rows, after use hover mouse over row I want
I want to use my iphone to set alter my wireless router settings, and
I'm trying to use the IE specific conditional statements to alter class settings based
I'm starting a new application that must use an existing database that use some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.