Bo's Oracle Station

查看: 1639|回复: 0

课程第39次

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2019-8-10 08:42:32 | 显示全部楼层 |阅读模式
  1. [oracle@station76 ~]$ srvctl add  listener -l L2 -o /u01/app/oracle/product/11.2.0/grid -p "TCP:1522"
  2. [oracle@station76 ~]$ crs_stat -t
  3. Name           Type           Target    State     Host
  4. ------------------------------------------------------------
  5. ora.DATA.dg    ora....up.type ONLINE    ONLINE    station76
  6. ora.FRA.dg     ora....up.type ONLINE    ONLINE    station76
  7. ora.L2.lsnr    ora....er.type OFFLINE   OFFLINE
  8. ora....ER.lsnr ora....er.type ONLINE    ONLINE    station76
  9. ora.apple.db   ora....se.type OFFLINE   OFFLINE
  10. ora.asm        ora.asm.type   ONLINE    ONLINE    station76
  11. ora.cssd       ora.cssd.type  ONLINE    ONLINE    station76
  12. ora.dbtest.db  ora....se.type OFFLINE   OFFLINE
  13. ora.diskmon    ora....on.type OFFLINE   OFFLINE
  14. ora.evmd       ora.evm.type   ONLINE    ONLINE    station76
  15. ora.ons        ora.ons.type   OFFLINE   OFFLINE
  16. ora.orcl.db    ora....se.type ONLINE    ONLINE    station76
  17. ora.rcat.db    ora....se.type ONLINE    ONLINE    station76
  18. [oracle@station76 ~]$ netstat -lntp | grep :1522
  19. (Not all processes could be identified, non-owned process info
  20. will not be shown, you would have to be root to see it all.)
  21. [oracle@station76 ~]$ srvctl start listener -l l2
  22. [oracle@station76 ~]$
复制代码
上监听器是有问题的:
QQ图片20190810084644.png

EM

  1. select  * from v$circuit;

  2. select  terminal from  v$session where saddr='00000000BC81B880';

  3. select  * from v$dispatcher;
复制代码

QQ图片20190810105811.png


  1. select substr( t.table_name, 3,1), count(*)
  2. from dba_tables t
  3. where t.table_name like 'WR_$\_%' escape '\'
  4. group by substr( t.table_name, 3,1);


  5. select * from dict where table_name like 'DBA_HIST\_%'  escape '\';

  6. select  v.text from dba_views v where v.view_name='DBA_HIST_ACTIVE_SESS_HISTORY';


  7. select  * from v$active_session_history;
复制代码
QQ图片20190810110228.png


QQ图片20190810110507.png

v$视图“抄写”成了数据字典视图(底表倒不是在system表空间上,而是在sysaux表空间上)。
解剖AWR:
QQ图片20190810111517.png

  1. select substr( t.table_name, 3,1), count(*)
  2. from dba_tables t
  3. where t.table_name like 'WR_$\_%' escape '\'
  4. group by substr( t.table_name, 3,1);
复制代码
  1. select substr( t.table_name, 3,1), count(*)
  2. from dba_tables t
  3. where t.table_name like 'WR_$\_%' escape '\'
  4. group by substr( t.table_name, 3,1);
复制代码
   SUBSTR(T.TABLE_NAME,3,1)COUNT(*)
1H125
2R31
3I96
4M10


H就是案例系统I/M就是专家系统,以及建立在改专家系统上的神经元网络。
10g的时候只有以上这3种。

由于AWR中有案例系统(H)-->就可以把工作负载记录下来(像录像机),进而可以重新播放,所以在11g里就引入了31个R,用来做重演。







回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-9 18:43 , Processed in 0.037943 second(s), 27 queries .

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