Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Moving properly index partition to another tablespace

684654Mar 13 2009 — edited Mar 13 2009
Oracle Version : 10.2.0.3.0

Hi,

I have a subpartitioned index -> partitioned by range and subpartitioned by list. I have to move this index to another tablespace. I have successfully moved all the subpartitions but indexes's views always show me references to the old tablespace.

I have moved all the subpartitions as follow :ALTER INDEX MYINDEX REBUILD SUBPARTITION MYSUBPARTITION TABLESPACE NEWTABLESPACE ;
Now when i look the corresponding index segments with "dba_segments" view, they are moved correctly to the new tablespace.

But,

in the column "def_tablespace_name" of "dba_part_indexes" view the value is still the old tablespace name.
in the column "tablespace_name" of "dba_ind_partitions" view the value is still the old tablespace name.

in the column "tablespace_name" of "dba_ind_subpartitions" view the value is correct, referencing the new tablespace.

What do i have to achieve to have these values properly set (in dba_part_indexes and dba_ind_partitions)?

I have tried
alter index myindex rebuild partition mypartition tablespace newtablespace;
but i have the error :

Error: ORA-14287
Text: cannot REBUILD a partition of a Composite Range partitioned index-----
Cause: User attempted to rebuild a partition of a Composite Range partitioned
index which is illegal
Action: REBUILD the index partition, a subpartition at a time

Thank's



Kind regard's

Stéphane

Edited by: user9928511 on 13 mars 2009 11:29
This post has been answered by 678145 on Mar 13 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2009
Added on Mar 13 2009
4 comments
2,883 views