
云和恩墨 成就所托 www.enmotech.com
2
analyze table t3 compute statistics for all indexes columns; --收集索引字段信息
analyze table t4 compute statistics;--收集表,表字段,索引信息
analyze table t5 compute statistics for all indexes; --收集索引信息
analyze table t6 compute statistics for table for all indexes for all columns; --收集表,索引,
表字段信息
b) Dbms_stats 包收集统计信息:
dbms_stats.gather_schema_stats 收集 SCHEMA 下所有对象的统计信息;
exec dbms_stats.gather_schema_stats(
ownname => 'SCOTT',
options => 'GATHER AUTO',
estimate_percent => dbms_stats.auto_sample_size,
method_opt => 'for all columns size repeat',
degree => 15,
granularity=> AUTO,
no_invalidate=> false
force=>false
cascade=>true,
)
dbms_stats.gather_table_stats 收集表、列和索引的统计信息;
exec dbms_stats.gather_schema_stats(
ownname => 'SCOTT',
tabname => 'T1',
partname =>’P1’,
estimate_percent => dbms_stats.auto_sample_size,
method_opt => 'for all columns size repeat',
degree => 15,
文档被以下合辑收录
相关文档
评论