|
- select * from (select * from v$sql order by cpu_time desc) where rownum<=6 ;
- select * from (select * from v$sql order by elapsed_time desc) where rownum<=6 ;
- select dbms_stats.get_prefs(pname => 'PUBLISH') from dual;
- begin
- dbms_stats.set_global_prefs(pname => 'PUBLISH',pvalue => 'FALSE');
- end;
-
-
- select * from dict where table_name like 'DBA%PEND%';
-
- select * from DBA_TAB_PENDING_STATS;
-
- begin
- dbms_stats.gather_table_stats('HR','EMPLOYEES');
- end;
-
- begin
- dbms_stats.publish_pending_stats(ownname => 'HR',tabname => 'EMPLOYEES');
- end;
复制代码
|
|