11g incremental stats
BEGIN
DBMS_STATS.SET_TABLE_PREFS ('SCHEMA', 'TABLE_NAME, 'INCREMENTAL','TRUE');
--Gather Stats.
DBMS_STATS.
gather_table_stats (
ownname => 'SCHEMA',
tabname => 'TABLE_NAME',
estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,
method_opt => 'for all indexed columns size auto',
DEGREE => 4,
CASCADE => TRUE);
END;
Wednesday, 13 June 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment