隨筆-25  評論-6  文章-0  trackbacks-0
          Abstract
          When you update table statistics using the RUNSTATS command, it requires that you run the command against each table, one by one. REORGCHK gives you the capability to update the statistics of a group of tables or all the tables in the database, with only one command.
          .
          Contents
          _
          DB2 UDB uses the statistics information in the catalog table to derive the best access plan. The DBA should regularly run the RUNSTATS command to keep the database statistics updated. This procedure will ensure the best performance on queries.

          If you want to update statistics on all the tables or a group of tables in the database, you can use the REORGCHK command with the UPDATE STATISTICS option. This would be run instead of running the RUNSTATS command against each table. The UPDATE STATISTICS option will first call the RUNSTATS routine to update the table statistic. You can then use these new statistics to determine if a reorg is needed.

          The REORGCHK command allows you to update statistics on a group of tables with one command.

          To update all the user and system tables use:

          REORGCHK UPDATE STATISTICS ON TABLE ALL

          To update all the tables of a particular schema use:

          REORGCHK UPDATE STATISTICS on SCHEMA schema_name

          To update all the tables of a particular table system use:

          REORGCHK UPDATE STATISTICS on TABLE SYSTEM
          posted on 2006-06-23 15:19 MyJavaWorld 閱讀(478) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 容城县| 麻阳| 资溪县| 海城市| 泌阳县| 常熟市| 鹤岗市| 孝义市| 万宁市| 吴江市| 洛阳市| 定兴县| 万载县| 双江| 新昌县| 鹿邑县| 嘉黎县| 台州市| 远安县| 昔阳县| 当涂县| 惠来县| 仪陇县| 隆德县| 岚皋县| 香河县| 商洛市| 安乡县| 册亨县| 蓬安县| 永泰县| 邵东县| 林芝县| 阳新县| 赣榆县| 镇康县| 武陟县| 永善县| 扎鲁特旗| 冕宁县| 寻甸|