create index , rebuild index troubleshooting 索引故障解決
---reference:
http://hi.baidu.com/rhuang666/blog/item/860358f5430c5cd7f2d3859c.html
http://hi.baidu.com/rhuang666/blog/item/7ff9911019c38e70ca80c48f.html
[@more@]---1
reate index online nologging中斷後,出問題
oracle 10204 rac ,我有張2G的表,建索引加了online nologging,後來我看建不上去,給他中斷了。現在就刪不掉了,rebuild的不也行。
用DBMS_REPAIR.ONLINE_INDEX_CLEAN ();
去修復,修復成功了。但是表還是無法drop ,rebuild就報錯
rac1> ALTER INDEX test.t_test_idx rebuild;
ALTER INDEX test.t_test_idx rebuild
*
ERROR at line 1:
ORA-08104: this index object 64756 is being online built or rebuilt
-------------------------------------------------------------------------------------------------------------------
DECLARE
isClean BOOLEAN;
BEGIN
isClean := FALSE;
WHILE isClean=FALSE
LOOP
isClean := dbms_repair.online_index_clean(dbms_repair.all_index_id, dbms_repair.lock_wait);
dbms_lock.sleep(5);
END LOOP;
END;
結貼,感謝有位兄弟給我的指令碼。
---2
為一個50g的大表做create index的時候,沒有用nologging選項,導致產生很多歸檔日誌,將磁碟空間佔滿,資料庫掛掉。
切忌這次教訓。create index 會產生歸檔。為大表建立index的時候要特別注意!
------------------------------------------------------------------------------------------------------------------------------------
on SCM_SALAUD_BILL_HDR (audrelateid) nosort ;
on SCM_SALAUD_BILL_HDR (audrelateid) online;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/350519/viewspace-1040465/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 加快建立索引(create / rebuild index) 的幾點索引RebuildIndex
- create index online 與rebuild index onlineIndexRebuild
- create index online 與rebuild index onlineIndexRebuild
- 聊聊索引Index Rebuild和Rebuild Online(下)索引IndexRebuild
- 聊聊索引Index Rebuild和Rebuild Online(上)索引IndexRebuild
- rebuild indexRebuildIndex
- index rebuildIndexRebuild
- 加快create / rebuild index的3個點(zt)RebuildIndex
- Default behavior of create & rebuild index in 10G (zt)RebuildIndex
- rebuild index 排序RebuildIndex排序
- sybase rebuild indexRebuildIndex
- alter index rebuild與index_statsIndexRebuild
- 重建索引index rebuild online vs offline vs index coalesce vs index shrik space索引IndexRebuild
- 測試index online rebuild故障記錄IndexRebuild
- Index rebuild --case 1IndexRebuild
- create index/create index online區別Index
- rebuild index 和 recreate index (重新建立index) 的區別RebuildIndex
- CREATE BITMAP INDEXIndex
- ORACLE中index的rebuildOracleIndexRebuild
- Index Online RebuildIndexRebuild
- Oracle create/rebuild index開並行時要記得noparallel哦~OracleRebuildIndex並行Parallel
- alter index rebuild 與 rebuild onlineIndexRebuild
- 【羅玄】從鎖的角度看rebuild index online和rebuild indexRebuildIndex
- rebuild index online和create index online及沒有online的區別RebuildIndex
- create index online 和create index 不同及注意點Index
- index索引Index索引
- alter index ind1 rebuild 和alter index ind1 rebuild onlineIndexRebuild
- Oracle alter index rebuild 說明OracleIndexRebuild
- Create index with open on-line index creationIndex
- hive orc表'orc.create.index'='true'與'orc.create.index'='false'HiveIndexFalse
- 【江楓 】Oracle 9i和10g在create index和rebuild index的統計資訊的區別OracleIndexRebuild
- create index .. onlineIndex
- Unable to create git index lockGitIndex
- create index onlineIndex
- Create Index ...ONLINEIndex
- oracle10g_alter index rebuild_online_重構索引OracleIndexRebuild索引
- Oracle 10g rebuild index,索引原來統計資訊丟失Oracle 10gRebuildIndex索引
- alter index rebuild和rebuild online的區別IndexRebuild