Oracle 9i及以上数据库的表分析和索引分析:
表分析:
Select 'execute dbms_stats.gather_table_stats(''' || owner || ''',''' || table_name || ''');' from all_tables;
索引分析:
Select 'execute dbms_stats.gather_index_stats(''' || owner || ''',''' || index_name || ''');' from all_indexes;
表分析:
Select 'execute dbms_stats.gather_table_stats(''' || owner || ''',''' || table_name || ''');' from all_tables;
索引分析:
Select 'execute dbms_stats.gather_index_stats(''' || owner || ''',''' || index_name || ''');' from all_indexes;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/5359/viewspace-679654/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/5359/viewspace-679654/