DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: Resize Partitions

  1. #1
    Join Date
    Jan 2001
    Posts
    515

    Question Resize Partitions

    We have a development database that matches our production environment. In the production environment we have a partitioned table that is partitioned by month since july 2000. We have to have all of the same partitions in development eventhough we don't have anything in them so that the tables match so we can move data from production to development with an export/import command. The question I have is how do we resize the development partitions. We only keep production data in the last three months. For example, I have a Jan 2002 partition with 1000M. I want to truncate the partition and make it 512K. What do I do? Any ideas? Thanks.

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    alter table xyz truncate partition jun_2001;
    Jeff Hunter

  3. #3
    Join Date
    Jan 2001
    Posts
    515

    The Initial Extent is to big

    This still leaves the initial extent that is to big 50M. We want to bring that down to as small as possible.

  4. #4
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    you cannot modify the initial extent of an object, drop it and re-create it if you want to do that

  5. #5
    Join Date
    Mar 2002
    Posts
    534
    you could use partition exchange and replace your segment having a large extent by a new empty segment having a small extent

    Regards
    Mike

  6. #6
    Join Date
    Jul 2001
    Location
    Slovenia
    Posts
    422
    alter table xxx move partition yyy storage (initial ...)
    Tomaž
    "A common mistake that people make when trying to design something completely
    foolproof is to underestimate the ingenuity of complete fools" - Douglas Adams

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width