Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rebuild Index 2

Status
Not open for further replies.

Moose467

Technical User
Aug 6, 2002
47
GB
Hi to all,
Quick question...
Can I rebuild an index while users are online, 10 at most?
I'm using 8.1.7.3 on AIX
Thanks for any help you can give

Phil
 
What type of index are you rebuilding? A normal index can be rebuilt while the DB is online but it will lock that index during the rebuild phase and users will be unable to access it. If the index is a bit map you have to have the DB offline to rebuild.

FLSTF
 
Actually, the typical index can be rebuilt online. You do this by specifying "alter index index_name rebuild online". The old index structure continues to be available to other users during the rebuild.

It's true that bitmap indexes don't support online rebuilds. However, the entire database need not be offline to do the rebuild. Oracle will acquire the necessary locks, and other users will have to wait while the rebuild finishes. As a result, bitmap index rebuilds should typically be done in off-peak hours to minimize contention.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top