Home > Database > Mysql Tutorial > body text

Oracle 对索引进行监控与分析

WBOY
Release: 2016-06-07 17:02:47
Original
948 people have browsed it

查看表索引信息 需要用到dba_indexes, dba_ind_columns,查看表索引列信息,包括复合索引的脚本: WITH nonformat AS (S

查看表索引信息 需要用到dba_indexes, dba_ind_columns,查看表索引列信息,,包括复合索引的脚本:

索引列column_names以,分隔,需要指定表名与表的所有者信息。

翻了几页书,做一下笔记哦!
发现多余的索引有两种方式
1.根据原理来判断
  考虑复合索引,根据复合索引的前缀性与选择性,分析表字段的记录分布情况,对复合索引进行整合。
2.使用Oracle的监控特性
alter index monitoring usage; --对index_name开启监控
alter index nomonitoring usage; --对index_name取消监控
select * from v$object_usage; --查询索引是否被使用

 

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!