Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

oracle calculate statistics on partition

ANALYZE TABLE SCHEMA.MY_TABLE PARTITION (PARTITION_NAME) COMPUTE STATISTICS;

exec DBMS_STATS.GATHER_TABLE_STATS('MY_USER', 'MY_TABLE', ESTIMATE_PERCENT=>50, 
	GRANULARITY=>'PARTITION', PARTNAME=>'My_PARTITION_NAME', DEGREE => 8);
 
PREVIOUS NEXT
Tagged: #oracle #calculate #statistics #partition
ADD COMMENT
Topic
Name
7+3 =