|
|
|
|
|
|
|
|
Re: a table deleted or updated frequency issue [message #558989 is a reply to message #557613] |
Wed, 27 June 2012 19:09  |
 |
alan.kendall@nfl.com
Messages: 163 Registered: June 2012 Location: Culver City, California
|
Senior Member |
|
|
Instead of using "alter table emp move;" which invalidates indexes, I can use the new "shrink space" command that rebuilds the table and moves the rowids within the indexes. This way the indexes never become unusable and the application never experiences any down time.
SQL > alter table scott.emp enable row movement;
Table altered.
SQL > alter table scott.emp shrink space;
Table altered.
SQL > alter table scott.emp disable row movement;
Table altered.
|
|
|