DBMS_REDIFINITION for partitioned table - why did it created 100% more fragmentation instead of defr
I have a single table and its dependent objects like indexes constraints in a single tablespace. The tablespace is around 200 GB size. When I wanted to reduce a column size for this table, I chose the online DBMS_REDEFINITION package. This option, as I understood, not only modified the table structure but defragments table as well. But it did the other way.
Before redefinition :
Datafile size - 237GB
Used space - 217GB
After redefinition :
Datafile size - 416GB
Used space - 196GB
So now I have 200GB unused space.I cannot resize the tablespace since 416GB is treated as used even though its just 196GB. Why did this happen after DBMS_DEFINITION? Is there anything else I need set up before going with this approach. NOTE: This table has a function-based index hence I did not go with the SHRINK option. Also, this table is list partitioned.