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

Subtotal of oracle index establishment

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

SQL > create index idx_test on test (id1) tablespace IDX nologging online parallel 4 * * Index created.SQL > alter index idx_test noparallel;Index altered.SQL > select degree from dba_indexes where index_name='IDX_TEST' In a 2407 application of DEGREE--1, it is necessary to modify the general index of a table with a data level of 10 million or above with a large number of visits (aforme b) to a unique constraint (aformab) create index idx_test on test (ameme bjorc) online. Alter table test add constraint cons_test unique (a dint bjorc) using index idx_test; first moves the table space: SQL > alter table test move tablespace LLC;Table altered. Then move the table space of the index: SQL > alter index idx_test rebuild tablespace LLC;Index altered. Query the distribution of the index (or table) on the data file: SELECT DISTINCT (b.file_name), a.owner, a.segment_name FROM dba_extents a, dba_data_files b WHERE a.file_id = b.file_id AND a.segment_name = 'IDX_LOTHISTORY_MODULEID' AND a.owner =' RPT'

Re-index and focus on the use of temporary tablespaces:

SELECT round ((f.bytes_free + f.bytes_used) / 1024 / 1024, 2) "total MB", round ((f.bytes_free + f.bytes_used)-nvl (p.bytes_used, 0)) / 1024 / 1024, 2) "Free MB", d.file_name "Datafile name", round (nvl (p.bytes_used, 0) / 1024 / 1024, 2) "Used MB" Round ((f.bytes_free + f.bytes_used) / 1024, 2) "total KB", round ((f.bytes_free + f.bytes_used)-nvl (p.bytes_used, 0)) / 1024, 2) "Free KB", round (nvl (p.bytes_used, 0) / 1024, 2) "Used KB", 0 "Fragmentation Index" FROM sys.v_$temp_space_header f Dba_temp_files d, sys.v_$temp_extent_pool p WHERE f.tablespace_name (+) = d.tablespace_name AND f.file_id (+) = d.file_id AND p.file_id (+) = d.file_id

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