compressing table and rebuild unusable indexes
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: compressing table and rebuild unusable indexes

  1. #1
    Join Date
    Oct 2001
    Location
    Berlin, Germany
    Posts
    97

    compressing table and rebuild unusable indexes

    Hello,

    alter table table_name move compress parallel; -- is what I know

    But how can I update the indexes of this table in the same statement?
    I read something like

    ... update indexes

    ... rebuild unusable local indexes

    But I did not find the right syntax.

    Can you help me?

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    Quote Originally Posted by ckiltz View Post
    Hello,

    alter table table_name move compress parallel; -- is what I know

    But how can I update the indexes of this table in the same statement?
    I read something like

    ... update indexes

    ... rebuild unusable local indexes

    But I did not find the right syntax.

    Can you help me?
    You can't. Add index rebuild statements to your script.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  3. #3
    Join Date
    Oct 2001
    Location
    Berlin, Germany
    Posts
    97
    Hallo, thank you for your reply!

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