I am using Oracle SQL and I have one question. I have a table with indexes, and it collects statistics. I have a procedure that discards indexes, inserts data into a table, and then recreates the same indexes again. Do I need to collect statistics again after this procedure, or will the indices be recognized? To collect statistics, I use:
EXEC dbms_stats.gather_table_stats(''MIGBUFFER'','''||table_name||''',cascade=>TRUE);
source
share