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!

alter table move vs alter table move update indexes

user632098Jul 25 2014 — edited Jul 25 2014

I am on Oracle 11.7 on HP UNIX. I am doing some OLTP compression, As part of that

  1. 1.I am doing alter table mytable move.

Which moves my table (so all data is compressed) but it makes my indexes unusable. I then rebuild these indexes using alter index .. rebuild.

  1. Other option I have:

alter table mytable move update indexes...

Using 2 I do not have to rebuild indexes because they do not become unusable.
However, I find 2 takes lot longer than one.

My application isĀ  down when I do 1 or 2, i.e., no users are using the database...

Can you provide insights why 2 will be so much slower than one ..

  1. Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2014
Added on Jul 25 2014
2 comments
1,709 views