Steps to force Oracle to recalculate execution plan for tables:
and, DBMS_STATS.GATHER_TABLE_STATS is preferable (source: link, oracle-link)
EXEC DBMS_STATS.GATHER_TABLE_STATS('<Schema_name>','<Table_name>');
-- deprecated approach
ANALYZE table <SCHEMA_NAME>.<TABLE_NAME> compute statistics;
and, DBMS_STATS.GATHER_TABLE_STATS is preferable (source: link, oracle-link)
No comments:
Post a Comment