Statistics at SUB-PARTITION level
764479Feb 20 2011 — edited Feb 21 2011How do you SET statistics at sub-partition level?
We are running Oracle 11g R2 and want to set statistics to to simulate different data distributions among the sub-partitions within related partitions.
Essentially we want to control/change the "NUM_ROWS" to fool the the Optimizer to think there are more or less rows.
We have reviewed DBMS_STATS Subprograms
DBMS_STATS.GET_TABLE_STATS
DBMS_STATS.SET_TABLE_STATS
Both of these subprograms seem to be able to go to the subpartition for the deepest level.
We can determine the statistics (NUM_ROWS) for the sub-partitions by querying the column NUM_ROWS of table DBA_TAB_SUBPARTITIONS.
AFTER the table be analyzed.
But we have not found a way to SET the table statistics at sub-partition level.
We are working in a VLDB and using RANGE-LIST partitioning for our largest of tables.
Edited by: user10260925 on Feb 20, 2011 9:02 AM
Edited by: user10260925 on Feb 20, 2011 9:02 AM