analyze table 
是用来取得相关表和index的统计信息(包含相关的io和cpu周期情况),
然后而基于cost的优化的oracle在执行相应的sql时根据以上的统计数字来自动选择最佳执行计划。
如果你的表数据变化很快,
则你的相关统计数字需要更新,
也就是需要重新做分析。做分析的时候有时候会有一些不稳定,
你可以通过备份原来的统计数字,
然后再次进行分析,
之后通过比较看哪个对性能更有益处来决定取舍。

解决方案 »

  1.   

    参照OCP优化的电子书
    www.oradb.net
      

  2.   

    Your Question is very good . Please be very careful when you analyze table in Oracle7.3 version . I believe there was a bug inside , in some case (very few possibility) , it will slow down the
    query . 
      Additional :
      Analayze table is to generate the statistics of table for Oracle choose the better route to execute the query . Please note you must analayze table if your optimizer mode is 'COST' .