Bo's Oracle Station

查看: 1937|回复: 0

第44次:2015-05-05

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2015-5-6 08:38:42 | 显示全部楼层 |阅读模式
  1. select  * from dba_outstanding_alerts;

  2. select  * from dba_alert_history;


  3. select * from v$fixed_table  where name like 'V$%ADVICE%';


  4. select  * from V$SHARED_POOL_ADVICE;

  5. select * from V$DB_CACHE_ADVICE;
  6. select  * from V$PGA_TARGET_ADVICE;

  7. select  * from V$MEMORY_TARGET_ADVICE;

  8. select  * from V$SGA_TARGET_ADVICE;

  9. select  * from V$PGA_TARGET_ADVICE_HISTOGRAM;

  10. select  * from v$sga_dynamic_components;



  11. ----

  12. select  n.NAME, sa.VALUE
  13.   from v_$session s , v_$sesstat sa , v_$statname n
  14.   where s.SID=sa.SID and sa.STATISTIC#=n.STATISTIC#
  15.             and s.TERMINAL='pts/4' ;
  16.             
  17.             select  * from v$fixed_table where name like 'V$%CLASS%';
  18.             
  19.             select  * from V$SYSTEM_WAIT_CLASS;
  20.             
  21.             select  * from dba_objects o where o.owner='HR' and o.object_type in
  22.                 ('PROCEDURE','PACKAGE', 'PACKAGE BODY','FUNCTION','TYPE','TRIGGER') ;
  23.                
  24.                
  25.             
  26.             select    i.blevel
  27.               from dba_indexes i where i.owner='HR' and i.index_name='I04209_UNAME';
  28.               
  29.               alter index hr.i04209_name rebuild online;
  30.               
  31.               select  * from v$fixed_Table where name like 'V$%CACHE%';]
  32.               
  33.               select  * from V$DB_OBJECT_CACHE  where owner='HR'  and name='SECURE_DML';
  34.             
  35.             begin
  36.                dbms_shared_pool.keep('HR.SECURE_DML');
  37.                end;
  38.                
  39.                 begin
  40.                dbms_shared_pool.unkeep('HR.SECURE_DML');
  41.                end;
  42.                
复制代码


回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-25 07:03 , Processed in 0.096805 second(s), 24 queries .

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