Anda di halaman 1dari 1

############################################

Estimate statistics for oracle subpartitions


############################################
Summary
You can create sql statements for subpartition statistics with the following que
ry
SELECT 'execute DBMS_STATS.GATHER_TABLE_STATS(ownname=> ' || ''''
|| table_owner || '''' || ', tabname=> ' || '''' || table_name ||
'''' || ', partname=> ' || '''' || partition_name || ''''
|| ', estimate_percent=>1, granularity=> ' || '''' ||
'ALL' || '''' || ', DEGREE=>20, CASCADE=>TRUE);' SQL
FROM dba_tab_partitions
WHERE table_name = 'UIN_MESSAGE'
AND table_owner = 'EMOB_FND'
ORDER BY partition_position;
You must execute the output of the script