ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 基础:表分析和索引分析

基础:表分析和索引分析

原创 Linux操作系统 作者:cargoo 时间:2010-11-23 19:42:27 0 删除 编辑
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;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/5359/viewspace-679654/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
熟悉Oracle、MySQL、PostgreSQL, 熟悉WebLogic

注册时间:2009-02-10

  • 博文量
    105
  • 访问量
    235417