Fix ORA-10636: ROW MOVEMENT is not enabled Table Shrink Command Failed

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World
Error Description:
Table shrink command failed with following error.

SQL> alter table siebel.EIM_ACCNT_UT shrink space compact;
alter table siebel.EIM_ACCNT_UT shrink space compact
*
ERROR at line 1:
ORA-10636: ROW MOVEMENT is not enabled

Solution Description:
Segment Shrink command reclaims the unused space. The shrink command compact the segment and adjusts the high water mark. Segment shrink requires that the rows be moved to new locations. So, you should enable the row movement for the table.

Please find the example below.

SQL> alter table siebel.EIM_ACCNT_UT enable row movement;

Table altered.

SQL>  alter table siebel.EIM_ACCNT_UT shrink space compact;

Table altered.
SQL> alter table siebel.EIM_ACCNT_UT disable row movement;

Table altered.

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer