1- set _force_parallel_query_dop = {cpu_total};
2- analyze table bmsql_warehouse partition(bmsql_warehouse) compute statistics for all columns size auto;
3- analyze table bmsql_district partition(bmsql_district) compute statistics for all columns size auto;
4- analyze table bmsql_customer partition(bmsql_customer) compute statistics for all columns size auto;
5- analyze table bmsql_new_order partition(bmsql_new_order) compute statistics for all columns size auto;
6- analyze table bmsql_oorder partition(bmsql_oorder) compute statistics for all columns size auto;
7- analyze table bmsql_order_line partition(bmsql_order_line) compute statistics for all columns size auto;
8- analyze table bmsql_stock partition(bmsql_stock) compute statistics for all columns size auto;
9- analyze table bmsql_history partition(bmsql_history) compute statistics for all columns size auto;
10- analyze table bmsql_config compute statistics for all columns size auto;
11- analyze table bmsql_item compute statistics for all columns size auto;
1+ call dbms_stats .gather_table_stats (' test' , ' bmsql_warehouse' , degree=> {cpu_total}, granularity=> ' GLOBAL' , method_opt=> ' FOR ALL COLUMNS SIZE AUTO' );
2+ call dbms_stats .gather_table_stats (' test' , ' bmsql_district' , degree=> {cpu_total}, granularity=> ' GLOBAL' , method_opt=> ' FOR ALL COLUMNS SIZE AUTO' );
3+ call dbms_stats .gather_table_stats (' test' , ' bmsql_customer' , degree=> {cpu_total}, granularity=> ' GLOBAL' , method_opt=> ' FOR ALL COLUMNS SIZE AUTO' );
4+ call dbms_stats .gather_table_stats (' test' , ' bmsql_new_order' , degree=> {cpu_total}, granularity=> ' GLOBAL' , method_opt=> ' FOR ALL COLUMNS SIZE AUTO' );
5+ call dbms_stats .gather_table_stats (' test' , ' bmsql_oorder' , degree=> {cpu_total}, granularity=> ' GLOBAL' , method_opt=> ' FOR ALL COLUMNS SIZE AUTO' );
6+ call dbms_stats .gather_table_stats (' test' , ' bmsql_order_line' , degree=> {cpu_total}, granularity=> ' GLOBAL' , method_opt=> ' FOR ALL COLUMNS SIZE AUTO' );
7+ call dbms_stats .gather_table_stats (' test' , ' bmsql_stock' , degree=> {cpu_total}, granularity=> ' GLOBAL' , method_opt=> ' FOR ALL COLUMNS SIZE AUTO' );
8+ call dbms_stats .gather_table_stats (' test' , ' bmsql_history' , degree=> {cpu_total}, granularity=> ' GLOBAL' , method_opt=> ' FOR ALL COLUMNS SIZE AUTO' );
9+ call dbms_stats .gather_table_stats (' test' , ' bmsql_config' , degree=> {cpu_total}, granularity=> ' AUTO' , method_opt=> ' FOR ALL COLUMNS SIZE AUTO' );
10+ call dbms_stats .gather_table_stats (' test' , ' bmsql_item' , degree=> {cpu_total}, granularity=> ' AUTO' , method_opt=> ' FOR ALL COLUMNS SIZE AUTO' );
0 commit comments