|
- select num_rows from dba_tables where table_name='EMPLOYEES2' and owner='HR';
- select * from dict where table_name like 'DBA%PENDING%STAT%';
- select * from DBA_TAB_PENDING_STATS;
- select * from dba_tab_stat_prefs where table_name='EMPLOYEES2' and owner='HR';
- begin
- dbms_stats.set_table_prefs('HR','EMPLOYEES2','PUBLISH','FALSE');
- end;
- begin
- dbms_stats.gather_table_stats('HR','EMPLOYEES2');
- end;a
- begin
- dbms_Stats.publish_pending_stats('HR','EMPLOYEES2');
- end;
- select * from stattab1;
- begin
- dbms_Stats.import_database_stats(stattab=>'STATTAB1');
- end;
复制代码
|
|