【问题标题】:How to do RUNSTAts on a particular table in Oracle如何在 Oracle 中的特定表上执行 RUNSTATs
【发布时间】:2019-02-12 07:55:55
【问题描述】:

我需要一些想法来完成我在特定表上执行 RUNSTATS 的工作

【问题讨论】:

  • 问题没有意义 - 你不运行 RUNSTATS on a table - 这是为了比较不同 SQL 查询的运行情况!

标签: sql oracle sqlplus database-administration


【解决方案1】:
exec dbms_stats.gather_table_stats (ownname => 'foo', tabname => 'bar', estimate_percent => dbms_stats.auto_sample_size, cascade => TRUE);

【讨论】:

    猜你喜欢
    • 2017-01-28
    • 2023-03-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-06
    • 1970-01-01
    相关资源
    最近更新 更多