Shrink Segment in Two Phase take Longer Time. (Doc ID 1614117.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Standard Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.
***Checked for relevance on 20-Sep-2016***

Symptoms

The online segment shrink can be done by executing ALTER TABLE.. SHRINK SPACE. Again, this can be accomplished in two **shorter** steps rather than one long step by specifying:

1) ALTER TABLE ... SHRINK SPACE COMPACT statement
2) then ALTER TABLE ... SHRINK SPACE statement
 
Inhouse test case shows that 'shrink space' (in one step) is always less than the total elapsed time for ('shrink space compact' + 'shrink space').

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms