《oracle索引技术》
看了和B树索引有关的那几篇,得到些实用而以前不知道的东西,但觉得还可以再深入些。索引嘛,重点还是在应用。 这些代码比较有用,看完再加。 近期索引使用次数 select object_name,operation,options,count(1) from dba_hist_sql_plan d,dba_hist_sqlstat h where d.object_owner<>'SYS' and d.operation like '%INDEX%' and d.sql_id=h.sql_id group by d.object_name,d.operation,d.options order by 1,2,3; 对表的访问中索引使用比例(自己想的) select object_name,object_type,STATISTIC_NAME,v