ORACLE 索引測試

2021-05-08 03:11:22 字數 513 閱讀 4652

select object_name,object_type from user_objects;--查詢物件資訊

analyze index fenlei_area_id validate structure;--分析

select height ,name,lf_rows,del_lf_rows from index_stats;---查詢資訊 批量insert時先drop index 再建立 效率會變高

select * from v$object_usage;--查詢是否有jian kong 有index

alter index fenlei_area_id monitoring usage;--設定jian kong ;

select * from t_statistic_fenlei t where t.area_id='061009001012014'--查詢index是否有用

alter index fenlei_area_id nomonitoring usage;--結束 jian kong ;

Oracle索引 百萬級資料測試

1.首先建立一張表 create table five million test name varchar2 30 school varchar2 30 2.插入資料declare begin for i in 1.5000000 loop insert into five million test...

Oracle索引 索引型別

oracle 提供了多種不同型別的索引以供使用。簡單地說,oracle 中包括如下索引 b 樹索引 這些是我所說的 傳統 索引。到目前為止,這是 oracle 和大多數其他資料庫中最常用的索引。b 樹的構造類似於二叉樹,能根據鍵提供一行或乙個行集的快速訪問,通常只需很少的讀操作就能找到正確的行。不過...

oracle 索引 之B TREE 索引

索引是oracle裡面的乙個非常重要的知識,oracle10g中索引可以分為以下 b tree indexes b tree cluster indexes hash cluster indexes reverse key indexes bitmap indexes bitmap join ind...