|
本帖最后由 botang 于 2017-3-9 11:32 编辑
上完1Z0-052第12/13章(AWR性能调优)
1Z0-052共19章(上完19章),1Z0-053共21章(上完16章),1Z0-063多租户部分共9章(上完0章)
总共上完全部49章中的35章
- select * from dba_outstanding_alerts order by creation_time desc ;
- select * from dba_alert_history order by creation_time desc ;
- select t.NUM_ROWS,t.LAST_ANALYZED
- from dba_tables t
- where t.TABLE_NAME='T_BIG';
-
- select tcs.COLUMN_NAME, tcs.NUM_BUCKETS,tcs.NUM_DISTINCT
- from dba_tab_col_statistics tcs
- where tcs.TABLE_NAME='T_BIG';
-
- begin
- dbms_stats.gather_table_stats('HR',
- 'T_BIG',
- estimate_percent=>100,
- method_opt=>'for columns type size 10 for all columns size 254');
- end;
-
- truncate table hr.t_big;
- select count(*) from hr.t_big;
- create bitmap index hr.i_big
- on hr.t_big ( type);
-
- select i.INDEX_NAME, i.NUM_ROWS ,i.LAST_ANALYZED
- from dba_indexes i
- where i.INDEX_NAME='I_BIG';
-
- begin
- dbms_stats.gather_schema_stats('HR');
- end;
-
- ----
- dbms_monitor
- select * from dba_Tab_modifications;
-
- ---
-
- select dbms_stats.get_prefs('STALE_PERCENT')
- from dual;
-
- select * from dba_tab_stat_prefs;
-
- begin
- dbms_stats.set_table_prefs('HR','T_BIG','STALE_PERCENT','13');
- end;
-
- --
-
- select * from dba_sql_profiles;
- select * from V$DB_CACHE_ADVICE;
复制代码
|
|