?
Solved

Rebuild all indexes

Posted on 2007-11-27
2
Medium Priority
?
811 Views
Last Modified: 2013-12-06
Is there a way do rebuild all damaged indexes from many databases/tables?
0
Comment
Question by:kps_ee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
tliotta earned 1000 total points
ID: 20360373
kps_ee:

One problem with damaged anything is that the damage interferes with determining what needs to be fixed.

An index might include three columns and the damage makes one of the column identifiers unreadable. If the index object cannot describe itself properly, it can be impossible to "rebuild". It could only be "recreated".

In short, it's impossible to answer the question accurately without knowing what types of damage happened.

However, "damage" might refer to access paths that are marked as 'Invalid'. These access paths are marked this way when the system ends abnormally while the members are open. Control over rebuilding these access paths is through the EDTRBDAP (Edit Rebuild Access Paths) command.

The options should be fairly obvious once the command displays its list. Rebuilding can be done for any or all APs during IPL, after IPL or when a program opens the AP. You choose how each one should be handled.

Post back and ask for details on elements that you need more info about.

Tom
0
 

Author Comment

by:kps_ee
ID: 20361220
You are correct the damage i was talking about was invalid access paths. Very helpful command.
Thanks Kleandros.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question