Consider i have TABLE1 in Tablespace TS1. I have another Tablespace TS2.
What is the difference between the below three
ALTER TABLE TABLE1 MOVE NOLOGGING PARALLEL;
ALTER TABLE TABLE1 MOVE TABLESPACE TS1 NOLOGGING PARALLEL;
ALTER TABLE TABLE1 MOVE TABLESPACE TS2 NOLOGGING PARALLEL;
Thanks in advance..
According to the Database SQL Language Reference:
The
move_table_clause
lets you relocate data of a nonpartitioned table or of a partition of a partitioned table into a new segment, optionally in a different tablespace, and optionally modify any of its storage attributes.
Therefore, with your first statement Oracle will move the table to a new segment on the same tablespace, while in the other two statements Oracle will move the table to a new segment on the specified tablespace (respectively TS1 and TS2).
If TABLE1
is already on tablespace TS1
then the first and second command will perform the same action.
Using MOVE
without changing the tablespace will simply reorganize the segment on the original tablespace.