监控Oracle索引是否被启用

创建Oracle索引:
create index DEFECT_SUBMIT_DATE_IDX on Defect(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’;
posted on 2014-05-27 00:15  大宴天下  阅读(451)  评论(0编辑  收藏  举报