For all tables from the SCOTT schema
EXEC dbms_stats.gather_schema_stats(’SCOTT’, cascade=>TRUE);
For the table EMP of SCOTT schema
EXEC dbms_stats.gather_table_stats(‘SCOTT’,’EMP’,cascade=>TRUE);
References:
The gap between theory and practice is not as wide in theory as it is in practice
For all tables from the SCOTT schema
EXEC dbms_stats.gather_schema_stats(’SCOTT’, cascade=>TRUE);
For the table EMP of SCOTT schema
EXEC dbms_stats.gather_table_stats(‘SCOTT’,’EMP’,cascade=>TRUE);
References: