As Collect Stats is similar to a "SELECT col, COUNT(*) FROM tab GROUP BY 1 ORDER BY 1;" you might need a lot of spool when it's a large column/multiple columns which are almost unique.
You can check the output of HELP STATS to spot it.
And if it's a large table with almost unique you can probably switch to SAMPLE stats.
Dieter
↧