暂无图片
请问各位;DBMS_STATS.GATHER_TABLE_STATS中granularity的AUTO和ALL什么区别?
我来答
分享
暂无图片 匿名用户
请问各位;DBMS_STATS.GATHER_TABLE_STATS中granularity的AUTO和ALL什么区别?

请问各位;DBMS_STATS.GATHER_TABLE_STATS中granularity的AUTO和ALL什么区别?

我来答
添加附件
收藏
分享
问题补充
1条回答
默认
最新
DonACE

查看下官方文档

Granularity of statistics to collect (only pertinent if the table is partitioned).

‘ALL’ - Gathers all (subpartition, partition, and global) statistics

‘APPROX_GLOBAL AND PARTITION’ - similar to ‘GLOBAL AND PARTITION’ but in this case the global statistics are aggregated from partition level statistics. This option will aggregate all statistics except the number of distinct values for columns and number of distinct keys of indexes. The existing histograms of the columns at the table level are also aggregated.The aggregation will use only partitions with statistics, so to get accurate global statistics, users should make sure to have statistics for all partitions. Global statistics are gathered if partname is NULL or if the aggregation cannot be performed (for example, if statistics for one of the partitions is missing).

‘AUTO’- Determines the granularity based on the partitioning type. This is the default value.

‘DEFAULT’ - Gathers global and partition-level statistics. This option is obsolete, and while currently supported, it is included in the documentation for legacy reasons only. You should use the ‘GLOBAL AND PARTITION’ for this functionality. Note that the default value is now ‘AUTO’.

‘GLOBAL’ - Gathers global statistics

‘GLOBAL AND PARTITION’ - Gathers the global and partition level statistics. No subpartition level statistics are gathered even if it is a composite partitioned object.

'PARTITION '- Gathers partition-level statistics

‘SUBPARTITION’ - Gathers subpartition-level statistics.

暂无图片 评论
暂无图片 有用 0
打赏 0
暂无图片
回答交流
Markdown


请输入正文
提交
相关推荐
大量的sql语句转换工具
回答 3
我写了一个转换器:createorreplacefunctionfnctabletomysql(iownerinstring,itablenameinstring,inumberdefaulttype
oracle 10g ocr loc file cannot be opened
回答 5
再提供些信息,os的系统日志有不少这样的信息:Nov2621:27:24plmdbkernel:tnslsnr[27510]:segfaultat18ip0000003d9746f365sp00007
oracle普通表转分区表之后的唯一索引创建问题
回答 4
已采纳
在12C之前的版本,对分区表进行删除分区或者TRUNCATE分区,合并或者分裂分区,MOVE分区等DDL操作时,分区表上的全局索引会失效,通常要加上UPDATEGLOBALINDEXES或者ONLIN
使用toad for oracle 连接远程数据库时报错:ORA-12660 加密或加密校验和参数不兼容
回答 2
你尝试把你本地的ORACLE客户端换成更高版本的试试(就是那个instantclient文件夹,带oci.dll和tnsnames.ora的),如果是低版本客户端连高版本数据库的时候,就会报这个,因为
查询当前和历史的IO 占用高sql
回答 1
已采纳
A:利用awr报告1、打一份awr报告2、找到topsql3、查看topsql中的orderbyread。B:利用sql语句selecta.sqlid,a.module,a.diskread,a.ex
AWR分析报告问题求助:队列等待时间超过100s,平均等待时间超过100ms,建议针对该队列进行优化
回答 1
AWR报告应该是着重从等待事件和TOPSQL看问题
oracle 16401问题
回答 9
升级问题到:紧急故障
满足什么条件Oracle的日志写入器LGWR才工作?
回答 1
已采纳
LGWR进程负责将SGA中重做日志缓冲区的内容刷新输出到磁盘。满足以下条件之一时,就会做这个工作:每过3秒;一个提交或回滚发起时;LGWR被告知进行日志文件切换时;重做日志缓冲区1/3满,或者已经包含
Oracle 12.2 安装目录下 groovy.js 有什么作用?
回答 1
index。html里面用来做一些数据统计之类工作的吧
oracle 中调整字段精度有哪些方法?
回答 1
已采纳
✅oracle调整字段精度的四种方法:调整方式一:(精度只能调大不能调小)altertabletablenameaMODIFY(columnAXXnumber(27,15));调整方式二:(借用一个新