I am looking for the best way to reclaim unused space for my paritioned table.
My predessor setup a table with a pctfree of 40,which is a huge waste of
space, since all of the data that goes into this table is never updated.
Therefore, I am thinking I would like to set pctfree 0 to see how much
space I can re-gain.
When I usually re-claim space in a paritioned table I do the following:
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
I woud do alter table move partition pctfree (I don't like zero) update global indexes.
You have to rebuild locally partitioned indexes
Wether you move it into same tablespace or other tablespace depends on your particular scenario - available space and size of the target partition.
Paul,
can you expand a bit more on your explanation. My goal is to recover space
but when I change my pctfree my current partitions do not appear to shrink
nor would I expect them too. Would this change only help me going forward
when new partitions are created.
I looking to accomplish two things:
First, de-crease the pctfree since this table is never being updated.
Second, regain as much space for each partiton.
Can you provide some syntax that would accomplish both or am I
missing something.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Bookmarks