Oracle 11g Estimated Index size

Source: Internet
Author: User


I. Creating index Considerations

1. Estimated Index size

2. View the amount of space available in the Index table space

3. View temporary table space size

4. Creation of business idle period

5, can consider the online, parallel, nologging mode


Second, the estimation index method

The procedure is as follows:

Sql> explain plan for CREATE index idx_object_id on TT (OBJECT_ID);

explained.

Sql> Set Lines pages 1000

Sql> select * FROM table (Dbms_xplan.display ());

Plan_table_output

--------------------------------------------------------------------------------------------------------------- ----------------

Plan Hash value:3757763116

----------------------------------------------------------------------------------------

| Id | Operation | Name | Rows | Bytes | Cost (%CPU) | Time |

----------------------------------------------------------------------------------------

| 0 |               CREATE INDEX STATEMENT |  |    2762k| 13m| 22958 (1) | 00:04:36 |

|  1 | INDEX BUILD NON unique|       idx_object_id |       |            |          | |

|   2 |               SORT CREATE INDEX |  |    2762k|            13m|          | |

|    3 | TABLE ACCESS Full |  TT |    2762k| 13m| 21560 (1) | 00:04:19 |

----------------------------------------------------------------------------------------

Plan_table_output

--------------------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------

Note

-----

-Estimated index size:67m bytes

Rows selected.

elapsed:00:00:00.01

Sql>


Oracle 11g Estimated Index size

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.