Bo's Oracle Station

查看: 2571|回复: 0

课程第50/51/52次(2017-09-08星期五和2017-09-10星期天上下午)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-9-10 16:16:13 | 显示全部楼层 |阅读模式
第三阶段New Feature/OCM Exam Preparation31-52
  1. LINUX:
  2. listener 1521
  3. l2       1526
  4. WINDOWS:
  5. tnsnames.ora     
  6.     ....  1521
  7.     ....  1526
  8.     (load_balance=yes)

  9. Clientside Connect-time Failover (CCF+CCLB)  

  10. 9iRAC:
  11.   rac1 1521 --->remote-listener 能知道rac2 1521都有什么
  12.   rac2 1521 --->remote-listener 能知道rac1 1521都有什么
  13. WINDOWS:
  14.   tnsnames.ora
  15.   ....  rac1 1521
  16.   ....  rac2 1521
  17.   (load_balance=yes)
  18.   (failover_type=
  19.    failover_method=
  20.    retry=
  21.    time_out=)
  22.    
  23. Clientside Failover (CF+CLB)

  24. TAF(透明应用故障转移)
  25. Prefer: rac1  
  26. Avaliable: rac2
  27. session rac1+rac2_shadows  -P PRECONNECT

  28. TAF: 普通TAF  +  带预连接TAF
  29. ---------------服务目标(service time,throughput) + 负载均衡目标(长会话和段会话)








  30. 10gR2 RAC(AQ):
  31.   rac1 1521 --->remote-listener 能知道rac2 1521都有什么
  32.   AQ-->ONS
  33.   rac2 1521 --->remote-listener 能知道rac1 1521都有什么
  34.   AQ-->ONS
  35. tnsnames.ora     
  36.     ....  1521
  37.     ....  1526
  38.     (load_balance=yes)
  39. Serverside Failover (SF+SLB)

  40. TAF--> TAF2(FCF/FAN)
  41. ---------------------------
  42. --------------服务目标(service time,throughput) +  建议者loadbalance Advisor  负载均衡目标(长会话和段会话)





  43. 11gR2 RAC(Serverpool):
  44. 不讨论TAF
  45. UNIFORM还是SINGLETON
  46. -------------------


  47. srvctl add service -d racdb -s GL -r racdb_2 -a racdb_1  -P PRECONNECT
复制代码



srvctl add service -d racdb -s GL -r racdb_2 -a racdb_1  -P PRECONNECT -q true  -m BASIC -e SELECT -w 1  -z 180 -B SERVICE_TIME -j LONG
推荐: srvctl add service -d racdb -s GL -r racdb_1,racdb_2 -q true  -m BASIC -e SELECT -w 1  -z 180 -B SERVICE_TIME -j LONG

  1. oracle@station13 ~]$ crsctl status serverpool -p
  2. NAME=Free
  3. IMPORTANCE=0
  4. MIN_SIZE=0
  5. MAX_SIZE=-1
  6. SERVER_NAMES=
  7. PARENT_POOLS=
  8. EXCLUSIVE_POOLS=
  9. ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r-x

  10. NAME=Generic
  11. IMPORTANCE=0
  12. MIN_SIZE=0
  13. MAX_SIZE=-1
  14. SERVER_NAMES=station13 station14
  15. PARENT_POOLS=
  16. EXCLUSIVE_POOLS=
  17. ACL=owner:oracle:r-x,pgrp:oinstall:r-x,other::r-x

  18. NAME=ora.racdb
  19. IMPORTANCE=0
  20. MIN_SIZE=0
  21. MAX_SIZE=-1
  22. SERVER_NAMES=station13 station14
  23. PARENT_POOLS=Generic
  24. EXCLUSIVE_POOLS=
  25. ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--

  26. NAME=ora.racdb_GL
  27. IMPORTANCE=0
  28. MIN_SIZE=0
  29. MAX_SIZE=-1
  30. SERVER_NAMES=station13 station14
  31. PARENT_POOLS=ora.racdb
  32. EXCLUSIVE_POOLS=
  33. ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--

  34. NAME=ora.servpool3
  35. IMPORTANCE=1
  36. MIN_SIZE=2
  37. MAX_SIZE=2
  38. SERVER_NAMES=
  39. PARENT_POOLS=
  40. EXCLUSIVE_POOLS=
  41. ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--

  42. [oracle@station13 ~]$ srvctl config database -d racdb
  43. Database unique name: racdb
  44. Database name:
  45. Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1
  46. Oracle user: oracle
  47. Spfile:
  48. Domain:
  49. Start options: open
  50. Stop options: immediate
  51. Database role: PRIMARY
  52. Management policy: AUTOMATIC
  53. Server pools: racdb
  54. Database instances: racdb_1,racdb_2
  55. Disk Groups: DATA,FRA
  56. Mount point paths:
  57. Services: GL
  58. Type: RAC
  59. Database is administrator managed
  60. [oracle@station13 ~]$ srvctl modify database -d racdb -g servpool3   
  61. [oracle@station13 ~]$ srvctl config database -d racdb
  62. Database unique name: racdb
  63. Database name:
  64. Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1
  65. Oracle user: oracle
  66. Spfile:
  67. Domain:
  68. Start options: open
  69. Stop options: immediate
  70. Database role: PRIMARY
  71. Management policy: AUTOMATIC
  72. Server pools: servpool3
  73. Database instances:
  74. Disk Groups: DATA,FRA
  75. Mount point paths:
  76. Services: GL
  77. Type: RAC
  78. Database is policy managed
  79. [oracle@station13 ~]$ crsctl status serverpool -p
  80. NAME=Free
  81. IMPORTANCE=0
  82. MIN_SIZE=0
  83. MAX_SIZE=-1
  84. SERVER_NAMES=
  85. PARENT_POOLS=
  86. EXCLUSIVE_POOLS=
  87. ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r-x

  88. NAME=Generic
  89. IMPORTANCE=0
  90. MIN_SIZE=0
  91. MAX_SIZE=-1
  92. SERVER_NAMES=
  93. PARENT_POOLS=
  94. EXCLUSIVE_POOLS=
  95. ACL=owner:oracle:r-x,pgrp:oinstall:r-x,other::r-x

  96. NAME=ora.servpool3
  97. IMPORTANCE=1
  98. MIN_SIZE=2
  99. MAX_SIZE=2
  100. SERVER_NAMES=
  101. PARENT_POOLS=
  102. EXCLUSIVE_POOLS=
  103. ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--

  104. [oracle@station13 ~]$
复制代码

srvctl add service -s gl -d racdb   -g servpool3  -c SINGLETON -q true  -m BASIC -e SELECT -w 1  -z 180 -B SERVICE_TIME -j LONG

回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-11-22 05:52 , Processed in 0.036552 second(s), 24 queries .

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