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

Thread: High Water Mark

Hybrid View

  1. #1
    Join Date
    Sep 2001
    Location
    Düsseldorf, Germany.
    Posts
    588
    Hi All,

    I want to reduce HWM of a table after deleting aprrox. 4000000 rows from table.

    Is rebuilding only option?

    After analyzing table, does the HWM goes to appropriate value?

    Please advice.

    Thanks

    Sameer

  2. #2
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    Your options are:

    1) Export table, drop table, create table, import data.
    2) ALTER TABLE ... MOVE
    3) Truncate the table and repopulate:
    CREATE temp_table AS select * from my_table;
    TRUNCATE TABLE my_table;
    INSERT INTO my_table SELECT * FROM temp_table;
    COMMIT;

    You can deallocate unused space above the high water mark using:

    ALTER TABLE my_table DEALLOCATE UNUSED;

    See:

    http://otn.oracle.com/docs/products/...chema.htm#6870

    Cheers
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: oracle-base.com
    My blog: oracle-base.com/blog

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