Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: rebuild index
Andrea wrote:
> frank.van.bortel_at_gmail.com wrote:
>> Andrea schreef: >> >>> Hi, >>> >>> someone can tell me if there are some warning if i want to rebuild all >>> indexes of my database (oracle 10g), can i do it without any problem? >>> >>> thanks very much >>> >>> bye >>> andrew >> There have been numerous discussion about the unnecessity of rebuilding >> indexes - especially the "normal" (B-tree) indexes. >> >> What type of indexes do you want to rebuild, and -more importantly- >> why?
Likely a complete waste of time and CPU. Rebuilding indexes is something you should only do when you have metrics supporting the fact that there is a need to do so.
One way to determine whether an index requires rebuilding is to use the built in SYS_OP_LBID function. I have a demo of its usage in Morgan's Library under Undocumented Oracle and there is some documentation by Jonathan Lewis you can find if you google for the function by name.
-- Daniel Morgan University of Washington Puget Sound Oracle Users GroupReceived on Thu Oct 05 2006 - 13:05:18 CDT
![]() |
![]() |