Skip to Main Content

SQL & PL/SQL

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!

Gather stats on huge table

Ram_AApr 21 2023

Hi Experts,

The TEMP_CUST table has been inserted with 90 million of records.

I am using the below script to gathering the stats.

EXEC dbms_stats.gather_table_stats('STAGE1_SCHEMA', 'TEMP_CUST',method_opt=>'FOR ALL COLUMNS SIZE AUTO',cascade => TRUE);

The script is running for more than 2 hours.

How to gather the require stats to improve performance of the query.

Please help me.

Thanks in advance.

Comments
Post Details
Added on Apr 21 2023
3 comments
769 views