|
* Index Reorganization : index´Â ÁÖ±âÀûÀ¸·Î Àç »ý¼ºÇØÁÙ Çʿ䰡 ÀÖ´Ù.
index¸¦ analyzeÇÏ¿© usage¸¦ ÃøÁ¤Çغ¸ÀÚ
SQL> analyze index dept_idx validate structure;
Index analyzed.
SQL> select (del_lf_rows_len/lf_rows_len)*100 as index_usage
2 from index_stats;
INDEX_USAGE
-----------
16.4948454 ==> deleteµÈ leaf row length·Î ¹æ±Ý¸¸µç index¶ó °ªÀÌ Á¤È®Ä¡ ¾ÊÀ¸³ª
10~20% ÀÌ»óÀÌ µÇ¸é index Àç»ý¼º(rebuild) ÇÊ¿äÇÏ´Ù.
* Index Rebuild
SQL> alter index dept_idx rebuild;
Index altered.
SQL> analyze index dept_idx validate structure;
Index analyzed.
SQL> select (del_lf_rows_len/lf_rows_len)*100 as index_usage
2 from index_stats;
INDEX_USAGE-----------
0 ==> rebuildÇÏ°í ³ª¼ 0ÀÌ µÇ¾úÀ½À» ¾Ë ¼ö ÀÖ´Ù.
- rebuildÀÇ Áß¿ä option : ´ë»óÀÌ ¸¹À¸¸é parallel, »¡¸® rebuild ÇÏ°Ô ÇÏ·Á¸é nologging À»
¾µ ¼ö ÀÖ´Ù.
- rebuildÀÇ ¿ëµµ : reorg
tablespace,storageÀý ¼öÁ¤
reverse index <--> normal index ·Î switching
- rebuildÁß query´Â °¡´ÉÇϰí, 8iÀ̻󿡼´Â DMLµµ °¡´ÉÇÏ´Ù.
|