Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DML Against partiitoned table does it require gathering stats against whole table

3156142May 17 2016 — edited May 27 2016

hi ,

We have a large volume partitioned table. Each partition running into 5-10 million rows. We daily load into this table and perform join queries immediately with table against other tables. In the interest of time we copy stats from previous partition everyday before we load and at the end of the day we collect stats . Recently we perfomed DDL against this table (added a couple of extra columns to the table) and we copied stats as usual from older partitions and started seeing very funning execution plans (sub optimal nested loop plans).

The question is when we perform DDL against any table is it necessary to gather stats of the entire table ? Does stats get stale or unusable because of DML. Also when we copy stats from partitions which were created a populated before the DML is performed does it causes issue in the optimizer.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2016
Added on May 17 2016
2 comments
948 views