Ultimately i need to know if this will be enough. In oracle, there is a setting on a table to incrementally gather statistics, rather than a full table. Basically, it will only gather stats on partitions where the data has changed. We need to make sure all partitioned tables have INCREMENTAL set to TRUE.
On Partitioning Tables just setting Incremental to true is enough or do we have to also set Publish command to true as well? If so how can i add it?
BEGIN
DBMS_STATS.SET_TABLE_PREFS ('ANT', 'S_WAREHOUSE_PRODUCT_FACT', 'INCREMENTAL', 'TRUE');
END
P 请让我知道是否需要更改或添加到代码中。这对我正在做的事情有必要吗?
1) The PUBLISH value for the partitioned table is true.(Default is TRUE)
2)The user specifies AUTO_SAMPLE_SIZE for ESTIMATE_PERCENT and AUTO for GRANULARITY when gathering statistics on the table.(Default is ESTIMATE_PERCENT=>AUTO_SAMPLE_SIZE and GRANULARITY=>AUTO)
How can i verify if tables already has publish set to true?
Can i leave default value as it is? Default is
ESTIMATE_PERCENT=>AUTO_SAMPLE_SIZE and GRANULARITY=>AUTO