|
第三阶段New Feature/OCM Exam Preparation(31-52)- LINUX:
- listener 1521
- l2 1526
- WINDOWS:
- tnsnames.ora
- .... 1521
- .... 1526
- (load_balance=yes)
- Clientside Connect-time Failover (CCF+CCLB)
- 9iRAC:
- rac1 1521 --->remote-listener 能知道rac2 1521都有什么
- rac2 1521 --->remote-listener 能知道rac1 1521都有什么
- WINDOWS:
- tnsnames.ora
- .... rac1 1521
- .... rac2 1521
- (load_balance=yes)
- (failover_type=
- failover_method=
- retry=
- time_out=)
-
- Clientside Failover (CF+CLB)
- TAF(透明应用故障转移)
- Prefer: rac1
- Avaliable: rac2
- session rac1+rac2_shadows -P PRECONNECT
- TAF: 普通TAF + 带预连接TAF
- ---------------服务目标(service time,throughput) + 负载均衡目标(长会话和段会话)
- 10gR2 RAC(AQ):
- rac1 1521 --->remote-listener 能知道rac2 1521都有什么
- AQ-->ONS
- rac2 1521 --->remote-listener 能知道rac1 1521都有什么
- AQ-->ONS
- tnsnames.ora
- .... 1521
- .... 1526
- (load_balance=yes)
- Serverside Failover (SF+SLB)
- TAF--> TAF2(FCF/FAN)
- ---------------------------
- --------------服务目标(service time,throughput) + 建议者loadbalance Advisor 负载均衡目标(长会话和段会话)
- 11gR2 RAC(Serverpool):
- 不讨论TAF
- UNIFORM还是SINGLETON
- -------------------
- 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
- oracle@station13 ~]$ crsctl status serverpool -p
- NAME=Free
- IMPORTANCE=0
- MIN_SIZE=0
- MAX_SIZE=-1
- SERVER_NAMES=
- PARENT_POOLS=
- EXCLUSIVE_POOLS=
- ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r-x
- NAME=Generic
- IMPORTANCE=0
- MIN_SIZE=0
- MAX_SIZE=-1
- SERVER_NAMES=station13 station14
- PARENT_POOLS=
- EXCLUSIVE_POOLS=
- ACL=owner:oracle:r-x,pgrp:oinstall:r-x,other::r-x
- NAME=ora.racdb
- IMPORTANCE=0
- MIN_SIZE=0
- MAX_SIZE=-1
- SERVER_NAMES=station13 station14
- PARENT_POOLS=Generic
- EXCLUSIVE_POOLS=
- ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--
- NAME=ora.racdb_GL
- IMPORTANCE=0
- MIN_SIZE=0
- MAX_SIZE=-1
- SERVER_NAMES=station13 station14
- PARENT_POOLS=ora.racdb
- EXCLUSIVE_POOLS=
- ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--
- NAME=ora.servpool3
- IMPORTANCE=1
- MIN_SIZE=2
- MAX_SIZE=2
- SERVER_NAMES=
- PARENT_POOLS=
- EXCLUSIVE_POOLS=
- ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--
- [oracle@station13 ~]$ srvctl config database -d racdb
- Database unique name: racdb
- Database name:
- Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1
- Oracle user: oracle
- Spfile:
- Domain:
- Start options: open
- Stop options: immediate
- Database role: PRIMARY
- Management policy: AUTOMATIC
- Server pools: racdb
- Database instances: racdb_1,racdb_2
- Disk Groups: DATA,FRA
- Mount point paths:
- Services: GL
- Type: RAC
- Database is administrator managed
- [oracle@station13 ~]$ srvctl modify database -d racdb -g servpool3
- [oracle@station13 ~]$ srvctl config database -d racdb
- Database unique name: racdb
- Database name:
- Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1
- Oracle user: oracle
- Spfile:
- Domain:
- Start options: open
- Stop options: immediate
- Database role: PRIMARY
- Management policy: AUTOMATIC
- Server pools: servpool3
- Database instances:
- Disk Groups: DATA,FRA
- Mount point paths:
- Services: GL
- Type: RAC
- Database is policy managed
- [oracle@station13 ~]$ crsctl status serverpool -p
- NAME=Free
- IMPORTANCE=0
- MIN_SIZE=0
- MAX_SIZE=-1
- SERVER_NAMES=
- PARENT_POOLS=
- EXCLUSIVE_POOLS=
- ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r-x
- NAME=Generic
- IMPORTANCE=0
- MIN_SIZE=0
- MAX_SIZE=-1
- SERVER_NAMES=
- PARENT_POOLS=
- EXCLUSIVE_POOLS=
- ACL=owner:oracle:r-x,pgrp:oinstall:r-x,other::r-x
- NAME=ora.servpool3
- IMPORTANCE=1
- MIN_SIZE=2
- MAX_SIZE=2
- SERVER_NAMES=
- PARENT_POOLS=
- EXCLUSIVE_POOLS=
- ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--
- [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
|
|