manual statistics:
下面语句在命令行可以运行
sql>exec dbms_stats.gather_table_stats('wiliam','tb_sale',estimate_percent=>100,cascade=>true);
wilaim:用户
tb_sale:表
estimate_percent:统计比例,第一次采用100%
cascade:统计索引
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22934571/viewspace-1044828/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22934571/viewspace-1044828/
Oracle统计
本文介绍如何使用Oracle内置过程dbms_stats.gather_table_stats进行表统计数据收集,包括设置统计比例为100%,并级联到所有索引。
1万+

被折叠的 条评论
为什么被折叠?



