Rebuild Oracle Database Indexes

We are running Oracle database RAC 12c.  Is it still a good practice to rebuild Oracle database Schema user indexes periodically?  Our previous Oracle DBA had maintenance tasks that he performed once a month, and I believe rebuilding the schema indexes was one item.  Is this necessary, and does this provide any benefit?   After rebuilding indexes do we need to update statistics?
LVL 1
sdrussAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sdstuberCommented:
In general no, it's not helpful.
But - if you have mass-but-incomplete purging you could get a benefit by reclaiming space.  However, if this is the case, then a coalesce should be sufficient.


A rebuild definitely does not require updating statistics.
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mark GeerlingsDatabase AdministratorCommented:
I basically agree with sdstuber, especially the first and last lines in his comment.

In addition to the "incomplete purging" that he mentioned (where a process deletes many, but not all records from a table) two other kinds of actions can also result in indexes that benefit from regular rebuilds:
1. indexes on tables that get lots of inserts *AND* the indexes are *NOT* based on a number that keeps getting higher for each insert
2. updates that change the value of indexed columns

These actions are not unusual in many Oracle systems.
0
Geert GOracle dbaCommented:
nope, not necessary

it was necessary on DBase IV, Paradox, ... databases, back in the eighties and nineties

Some vendors still believe this is necessary and succeed in convincing a dba to do that.
A good dba knows when to say NO to such vendors.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.