📜  oracle 收集表统计信息 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:04.634000             🧑  作者: Mango

代码示例1
CALL DBMS_STATS.GATHER_TABLE_STATS(
    'OWNER_NAME',
    'TABLE_NAME',
    ESTIMATE_PERCENT => 50,            -- longer but better than 1 for exec plans
    GRANULARITY => 'PARTITION',       -- or SUBPARTITION or nothing  
    PARTNAME => 'PARTITION_NAME',     -- or nothing
    DEGREE => 8                     -- parallelism
);