11gr2 RAC配置Service-Side TAF
10g可以用dbca 來配置TAF 11.2以後只能透過命令和EM方式來實現,命令方式試驗結果如下:
1 建立TAF服務
srvctl add service -d orcl -s orcl_taf -r "orcl1,orcl2" -P BASIC
2 啟動TAF服務
srvctl start service -d orcl -s orcl_taf
3 修改service 引數
execute dbms_service.modify_service (service_name => 'orcl_taf', aq_ha_notifications => true, failover_method => dbms_service.failover_method_basic, failover_type => dbms_service.failover_type_select, failover_retries => 181,failover_delay => 5,clb_goal => dbms_service.clb_goal_long);
4 查詢是否設定成功
SQL> select name, failover_method, failover_type, failover_retries,goal, clb_goal,aq_ha_notifications from dba_services where service_id =4;
NAME
----------------------------------------------------------------
FAILOVER_METHOD
----------------------------------------------------------------
FAILOVER_TYPE
----------------------------------------------------------------
FAILOVER_RETRIES GOAL CLB_G AQ_
---------------- ------------ ----- ---
orcl_taf
BASIC
SELECT
180 NONE LONG YES
5 檢查服務註冊情況
[grid@node1 ~]$ lsnrctl services
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 26-FEB-2014 09:21:34
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "orcl" has 1 instance(s).
Instance "orcl1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "orcl_taf" has 1 instance(s).
Instance "orcl1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
6 配置一個tnsnames
ORCL_TAF =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scanip)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl_taf)
)
)
7 測試
SQL> select host_name,instance_name from v$instance;
HOST_NAME
----------------------------------------------------------------
INSTANCE_NAME
----------------
node1
orcl1
SQL> /
HOST_NAME
----------------------------------------------------------------
INSTANCE_NAME
----------------
node2
orcl2
關閉該節點
srvctl stop instance -d orcl -i orcl1 -o immediate
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15747463/viewspace-1092913/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11gR2 RAC Service-Side TAF 配置示例OracleIDE
- Service-side TAFIDE
- ORACLE RAC TAF 配置(透明故障轉移)Oracle
- rac 的Client-side TAF配置clientIDE
- 【RAC】RAC中的負載均衡和故障切換--TAF配置負載
- Oracle RAC TAF [zt]Oracle
- Linux平臺上Oracle Rac中的TAF配置LinuxOracle
- Failover 之 Client-Side Connect time Failover、Client-Side TAF、Service-Side TAFAIclientIDE
- 11gR2(11.2) RAC TAF Configuration for Admin and Policy Managed DatabasesDatabase
- Jdbc thin not suppot Rac TAFJDBC
- Oracle 10g RAC TAFOracle 10g
- 【TAF】使用Oracle RAC的TAF技術之SESSION型別OracleSession型別
- Oracle RAC TAF 無縫failoverOracleAI
- RAC TAF 連線 (tnsnames.ora)
- Oracle RAC Failove 之二:TAFOracleAI
- Oracle 10g RAC TAF介紹Oracle 10g
- Oracle RAC的TAF簡單測試Oracle
- 【TAF】使用Oracle RAC的TAF技術實現不間斷查詢Oracle
- 靈活實現RAC三節點的負載均衡及TAF配置(五)負載
- 靈活實現RAC三節點的負載均衡及TAF配置(二)負載
- 靈活實現RAC三節點的負載均衡及TAF配置(一)負載
- 靈活實現RAC三節點的負載均衡及TAF配置(四)負載
- 靈活實現RAC三節點的負載均衡及TAF配置(三)負載
- oracle 11g rac TAF 測試方案Oracle
- TNSNAMES TAF TEMPLATE , LOCAL_LISTENER RAC FAILOVERAI
- [轉載]Oracle 10g RAC TAF介紹Oracle 10g
- 在JDBC連線池中啟動Oracle RAC的TAFJDBCOracle
- Oracle RAC Failove 之三:Server-Side TAFOracleAIServerIDE
- Oracle RAC 客戶端故障轉移(failover) TAFOracle客戶端AI
- 安裝11gr2 RAC
- 11gR2 RAC修改IP
- Oracle 11gR2 RAC 單網路卡轉雙網路卡繫結配置Oracle
- oracle 11gR2 rac+asm 資料庫安裝配置步驟OracleASM資料庫
- Oracle 11gR2 RAC Database使用emca配置叢集dbconsoleOracleDatabase
- 11gR2 RAC ASM 啟動ASM
- oracle 11gr2 rac 安裝Oracle
- 【RAC安裝】 AIX下安裝Oracle 11gR2 RACAIOracle
- Oracle 11gR2 RAC修改SCAN IPOracle