alter index rebuild 與 rebuild online
兩者重建索引時的掃描方式不同,rebuild用的是“INDEX FAST FULL SCAN”,rebuild online用的是“TABLE ACCESS FULL”; 即rebuild index是掃描索引塊,而rebuild index online是掃描全表的資料塊.
SQL> explain plan for alter index ind_test_id rebuild; SQL> select * from table(dbms_xplan.display);
SQL> explain plan for alter index ind_test_id rebuild online;
SQL> select * from table(dbms_xplan.display);
rebuild index online在執行期間不會阻塞DML操作,但在開始和結束階段,需要請求模式為4的TM鎖。因此
,如果在rebuild index online開始前或結束時,有其它長時間的事物在執行,很有可能就造成大量的鎖等
待。也就是說在執行前仍會產生阻塞, 應該避免排他鎖.
而rebuild index在執行期間會阻塞DML操作, 但速度較快.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/223653/viewspace-1255311/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- alter index rebuild和rebuild online的區別IndexRebuild
- alter index ind1 rebuild 和alter index ind1 rebuild onlineIndexRebuild
- alter index rebuild與index_statsIndexRebuild
- alter index rebuild online引發的血案IndexRebuild
- alter index ... rebuild online的機制(zt)IndexRebuild
- create index online 與rebuild index onlineIndexRebuild
- create index online 與rebuild index onlineIndexRebuild
- Index Online RebuildIndexRebuild
- 聊聊索引Index Rebuild和Rebuild Online(下)索引IndexRebuild
- 聊聊索引Index Rebuild和Rebuild Online(上)索引IndexRebuild
- Oracle alter index rebuild 說明OracleIndexRebuild
- 【羅玄】從鎖的角度看rebuild index online和rebuild indexRebuildIndex
- oracle10g_alter index rebuild_online_重構索引OracleIndexRebuild索引
- rebuild與rebuild online效率比對Rebuild
- index rebuild online的問題IndexRebuild
- "Alter index rebuild online parallel n"會修改索引的degree屬性IndexRebuildParallel索引
- rebuild indexRebuildIndex
- index rebuildIndexRebuild
- 測試index online rebuild故障記錄IndexRebuild
- “rebuild index online hang住" 問題解析RebuildIndex
- rebuild index 排序RebuildIndex排序
- sybase rebuild indexRebuildIndex
- 索引rebuild和rebuild online時要慎重索引Rebuild
- rebuild index online的鎖機制淺析RebuildIndex
- Online rebuild index遭遇ORA-08104RebuildIndex
- Index rebuild --case 1IndexRebuild
- 關於rebuild index online 及drop index後重建問題RebuildIndex
- rebuild index online和create index online及沒有online的區別RebuildIndex
- 索引rebuild和rebuild online時要慎重(轉載)索引Rebuild
- ORACLE中index的rebuildOracleIndexRebuild
- 重建索引index rebuild online vs offline vs index coalesce vs index shrik space索引IndexRebuild
- (轉)Index Rebuild Online 過程(9i)完整版IndexRebuild
- best practice of rebuild your partition table local index online by using: "update indexes"RebuildIndex
- create index , rebuild index troubleshooting 索引故障解決IndexRebuild索引
- rebuild index 和 recreate index (重新建立index) 的區別RebuildIndex
- 大資料量rebuild index的經歷大資料RebuildIndex
- rebuild online索引遇到ora-1450Rebuild索引
- ORA-08104 索引online rebuild索引Rebuild