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!

IOT Table management moving primary key

wolfej50Oct 20 2016 — edited Oct 20 2016

Oracle 11g on Linux

I'm trying to move an IOT to a different tablespace.  I've moved the table via ALTER TABLE <table> MOVE TABLESPACE <new tablespce>, but there is an associated 'primary key' index (index type is 'IOT - TOP').  I'm trying to move this primary key, but ALTER INDEX <idx> REBUILD TABLESPACE <new tablespace> gives me an error that IOT primary keys cannot be rebuilt and ALTER TABLE <iot table> MOVE; doesn't seem to have any affect (with or without the ONLINE argument).  Nor can I drop the PK and re-add it. (Note the test environment I'm working on is air gaped from the workstation I'm using to get on this site, so I can't just copy/paste requested results, but I can transcribe short segments).  Any suggestions on how I can move or rebuild the IOT - TOP index on the new tablespace?

Jim Wolfe

This post has been answered by JohnWatson2 on Oct 20 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 17 2016
Added on Oct 20 2016
3 comments
515 views