Bo's Oracle Station

查看: 1881|回复: 0

课程第56次:2016-07-24星期日上午

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2016-7-23 22:14:05 | 显示全部楼层 |阅读模式
本帖最后由 botang 于 2016-7-24 16:40 编辑

课程第56次:2016-07-24星期日上午
【上完1Z0-052的第12章】AWR简介
【上完1Z0-051】:共12章0 1 2 3 4 5 6 7 8 9 10 11
【1Z0-052】:共18章(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
【1Z0-053】:共15章(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
表示已经上过的,表示还没上的。

参考别期的帖子:
https://www.botangdb.com/forum.php?mod=viewthread&tid=266&extra=page%3D1
统计信息:
  1. select  * from dba_tab_stat_prefs  t where t.owner='SH'
  2.   and t.table_name='SALES';
  3.   
  4.   select  t.num_rows   from dba_tables t
  5.    where t.owner='HR' and t.table_name='T04209_UNAME';
  6.    
  7.    select  *
  8.      from dba_tab_col_statistics  tcs
  9.       where tcs.owner='HR' and tcs.table_name='T04209_UNAME';
  10.       
  11.       
  12.   select  i.num_rows
  13.     from dba_indexes i where i.owner='HR' and i.table_name='T04209_UNAME';
  14.    
  15.   begin
  16.      dbms_stats.delete_table_stats (ownname => 'HR' , tabname => 'T04209_UNAME'     
  17.      
  18.            )  ;
  19.     end;
  20.    
  21.     ---
  22.    
  23.   begin
  24.    dbms_stats.set_table_prefs('HR','T04209_UNAME','PUBLISH','FALSE');
  25.    end;
  26.    
  27.    begin
  28.       dbms_Stats.gather_table_stats('HR','T04209_UNAME',
  29.         method_opt =>'for columns uvalue size 254 for all columns size auto');
  30.     end;

  31.     select  * from dba_tab_pending_stats;
  32.    
  33.     begin
  34.        dbms_Stats.publish_pending_stats('HR','T04209_UNAME');
  35.       end;
  36.       
  37.       ---
  38.       
复制代码




stateful 告警
  1. create tablespace tbs05212  datafile size 10M  autoextend off ;

  2. select  bytes/1024/1024 from dba_segments s where s.segment_name='T04209_UNAME';
  3. alter table hr.t04209_uname move tablespace tbs05212;


  4. select  * from dba_outstanding_alerts  o order by o.time_suggested desc ;

  5. select  * from dba_alert_history ah  order by ah.time_suggested desc;

  6. alter tablespace tbs05212 add datafile size 40M;


  7. ----
  8. select  * from dict where table_name like 'V$%HISTOG%';

  9. select  * from V$SQL_WORKAREA_HISTOGRAM;

  10. select  * from dict where table_name like 'V$%ADVICE';

  11. select  * from V$SHARED_POOL_ADVICE;

  12. select  * from V$DB_CACHE_ADVICE;
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-19 02:37 , Processed in 0.035967 second(s), 24 queries .

快速回复 返回顶部 返回列表