DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Repolulating the tables with multi-million rows for reduced redo logs

  1. #11
    Join Date
    Mar 2002
    Posts
    534
    Quote Originally Posted by vnktummala View Post
    APPEND use direct path and appends the data after the HWM.

    Truncate with reuse storage would not bring down HWM. So not recommended to use when you are using APPEND hint.

    Thanks,

    Truncate allways brings the HWM down.

  2. #12
    Join Date
    Mar 2006
    Location
    Charlotte, NC
    Posts
    865
    Hi Mike,

    Please see the REUSE STORAGE section from this link.

    Regards,
    Vijay Tummala

    Try hard to get what you like OR you will be forced to like what you get.

  3. #13
    Join Date
    Mar 2002
    Posts
    534
    Quote Originally Posted by vnktummala View Post
    Hi Mike,

    Please see the REUSE STORAGE section from this link.

    Regards,
    Where is it written that the HWM is not reset?

    How should a truncate work without reseting the HWM?

    The REUSE STORAGE option is related to the allocated exetens not to the HWM.

    Regards

  4. #14
    Join Date
    Mar 2006
    Location
    Charlotte, NC
    Posts
    865
    If the extents are not de-allocated then the HWM will at the end correct? In this case if we are using APPEND hint then oracle start allocating the space for new records after HWM which wastes some storage.

    Please correct me if I am wrong.

    Regards,
    Vijay Tummala

    Try hard to get what you like OR you will be forced to like what you get.

  5. #15
    Join Date
    Mar 2002
    Posts
    534
    Hi,

    There is no direct relation between the HWM and the number of extents.

    An extent is just a logical space allocated to a table/segment.
    The HWM informs from which point on all blocks are empty and unformatted.

    The reason why a truncate is so fast is because Oracle just resets the HWM.
    With the REUSE STORAGE option the extent allocated to the table are not removed. The main advantage of it is that the extents don't need to be reallocated to the table when data are inserted again. However I don't think that you got a real performance advantage when using a locally managed tablespace.

    Regards

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