查看數據庫中有無多余的索引
column redundant_index format a
column sufficient_index format a
select /*+ ordered */
o
o
from
(
select
obj#
bo#
count(*) cols
max(decode(pos#
from
sys
group by
obj#
bo#
) ic
sys
sys
sys
sys
sys
sys
where
ic
ic
ic
ic
i
bitand(i
ls * (ls +
( select
sum(xc
from
sys
sys
where
xc
xc
xc
xc
) and
n
n
o
o
From:http://tw.wingwit.com/Article/program/Oracle/201311/17500.html