创建Oracle索引:
create index DEFECT_SUBMIT_DATE_IDX on Defect(Submit_Date);
create index DEFECT_DBID_SUBMIT_DATE_IDX on Defect(dbid, Submit_Date);
create index DEFECT_DBID_SUBMIT_DATE_IDX on Defect(dbid, Submit_Date);
删除索引:
drop index DEFECT_SUBMIT_DATE_IDX;
设置监控索引:
alter index DEFECT_SUBMIT_DATE_IDX monitoring usage;
alter index DEFECT_DBID_SUBMIT_DATE_IDX monitoring usage;
显示监控结果:
select index_name, table_name, monitoring, used from V$OBJECT_USAGE;
显示Oracle索引:
select index_name, index_type, uniqueness from user_indexes where
table_name=‘DEFECT’;