Results 1 to 4 of 4

Thread: Table moved to new tablespace on different disk

  1. #1
    Join Date
    Sep 2004
    Posts
    2

    Question Table moved to new tablespace on different disk

    Hi all, If I move a table to a different (new) tablespace do I need to gather stats or rebuild the indices (even though the indices are on a seperate tablespace from the table)?

  2. #2
    Join Date
    Sep 2004
    Posts
    2
    hi,
    i think that yes you do need to rebuild the indexes..reason..that now the table is in new tablespace..the physical locaiton has changed ..so index has to store the rowids and those rowids have changed..so you must rebuild the indexes..
    shreyaas

  3. #3
    Join Date
    Mar 2003
    Posts
    468
    how did you do the move will indicate if you need to rebuild indexes or any other supporting structures.

    you can always check the dba_indexs view to see the associated indexes on a particular table.

    select index_name
    from dba_indexes
    where table_owner = :table_owner
    and table_name = :table_name

  4. #4
    Join Date
    Sep 2004
    Posts
    1
    Once you move the table to a new tablespace, you will need to rebuild the indexes before using else it will give you error.

    Once you have rebuilt the indexes, you can gather statistics.

    Regards,
    Sagi.

Posting Permissions

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