Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle 11g estimates index size

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Matters needing attention in creating an index

1. Estimate index size

2. View the available space of the index tablespace

3. View temporary tablespace size

4. Creation of business leisure period

5. Online, parallel and nologging modes can be considered.

II. Predictive indexing method

The steps are as follows:

SQL > explain plan for create index idx_object_id on tt (object_id)

Explained.

SQL > set lines 200 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

14 rows selected.

Elapsed: 00:00:00.01

SQL >

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report