dbms_stats.gather_table_stats详解
来源:互联网 发布:世界征服者3mac 编辑:程序博客网 时间:2024/09/21 06:18
DBMS_STATS.GATHER_TABLE_STATS的语法如下:
DBMS_STATS.GATHER_TABLE_STATS (
参数说明:
ownname:要分析表的拥有者
tabname:要分析的表名.
partname:分区的名字,只对分区表或分区索引有用.
estimate_percent:采样行的百分比,取值范围[0.000001,100],null为全部分析,不采样. 常量:DBMS_STATS.AUTO_SAMPLE_SIZE是默认值,由oracle决定最佳取采样值.
block_sample:是否用块采样代替行采样.
method_opt:决定histograms信息是怎样被统计的.method_opt的取值如下(默认值为FOR ALL COLUMNS SIZE AUTO):
for all columns:统计所有列的histograms.
for all indexed columns:统计所有indexed列的histograms.
for all hidden columns:统计你看不到列的histograms
for columns <list> SIZE <N> | REPEAT | AUTO | SKEWONLY:统计指定列的histograms.N的取值范围 [1,254]; REPEAT上次统计过的histograms;AUTO由oracle决定N的大小;SKEWONLY multiple end-points with the same value which is what we define by "there is skew in thedata
degree:决定并行度.默认值为null.
granularity:Granularity of statistics to collect ,only pertinent if the table is partitioned.
cascade:是收集索引的信息.默认为FALSE.
stattab:指定要存储统计信息的表,statid如果多个表的统计信息存储在同一个stattab中用于进行区分.statown存储统计信息表的拥有者.以上三个参数若不指定,统计信息会直接更新到数据字典.
no_invalidate: Does not invalidate the dependent cursors if set to TRUE. The procedure invalidatesthe dependent cursors immediately if set to FALSE.
:即使表锁住了也收集统计信息.
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS统计数据 详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- dbms_stats.gather_table_stats详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- DBMS_STATS.GATHER_TABLE_STATS详解
- UIView的alpha、hidden和opaque属性之间的关系和区别
- 八数码的八境界
- POJ 2373 Dividing the Path(线段树+dp)
- web请求和响应乱码
- SDUT3298 小鑫杀怪兽 滚动数组 防TLE
- dbms_stats.gather_table_stats详解
- hdu5317 RGCDQ
- VS与MySQL API进行数据库连接
- Linux 命令学习之apt命令详解
- 昨天是我的编程第一天,今天是第二天
- UI 07 界面传值 之 从后向前 ---- 协议传值
- android lint 去除无用的资源
- Robberies(逆向思维转换+01背包好题)
- The Java EE 6 Tutorial Creating and Initializing a Servlet