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

Thread: defragment tablespace

Threaded View

  1. #8
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    Originally posted by kpate
    what will be the best way...
    let say i have 10g tablespace after rebuilding indexes it uses 2gig.
    can i shrink that tablespace to 5g....
    Probably, it depends on where the the indexes physically end up in the TS. Usually they will be rebuilt towards the "bottom" end so this will work - it did for me. (I'm sure someone out there is now busy constructing a counter-example!).

    If there are tables in the same TS, this will not work if you have one physically beyond the 5Gb mark.

    (Note that you can use "alter index rebuild" to move indexes to a different TS, if that helps.)
    Last edited by DaPi; 02-21-2003 at 12:02 PM.
    "The power of instruction is seldom of much efficacy except in those happy dispositions where it is almost superfluous" - Gibbon, quoted by R.P.Feynman

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