1.创建索引
create index t_idx1 on t(id);
2.创建bitmap索引
SQL> create bitmap index mm_bitmp_idx on mm(id);
3.修改索引
alter index 索引名 ...
4.重新分配索引空间
alter index 索引名 allocate extent(size 200K
datafile '/opt/..,/index01.dbf')
5.释放索引中的空间
alter index 索引名 deallocate unused;
6.rebuilding 索引
alter index 索引名 rebuild tablespace 表空间名;
7.索引空间整理
alter index 索引名 coalesce;
8.分析索引
select count(*) from index_stats;
analyze index t_idx1 validate structrue;
9.监控索引
select * from v$object_uage;
alter index 索引名 monitoring usage;
select * from v$object_uage;
set autot on exp
select * from 表名 where id = 888;
alter index 索引名 nomonitoring usage;
10.和索引相关的视图
DBA_indexes
DBA_IND_COLUMNS
V$object_usage