19c TAF 配置及測試
19c TAF 配置及測試
一、新增services_taf:
[root@ora19crac1 ~]# su - oracle Last login: Tue Mar 3 18:06:26 CST 2020 on pts/1 [oracle@ora19crac1 ~]$ srvctl add service -d woo -s server_taf -r "woo1,woo2" -P BASIC
二、啟動server_taf
[oracle@ora19crac1 ~]$ srvctl start service -d woo -s server_taf
三、檢查server_taf 執行狀態
[oracle@ora19crac1 ~]$ srvctl config service -d woo Service name: server_taf Server pool: Cardinality: 2 Service role: PRIMARY Management policy: AUTOMATIC DTP transaction: false AQ HA notifications: false Global: false Commit Outcome: false Failover type: Failover method: Failover retries: Failover delay: Failover restore: NONE Connection Load Balancing Goal: LONG Runtime Load Balancing Goal: NONE TAF policy specification: BASIC Edition: Pluggable database name: Hub service: Maximum lag time: ANY SQL Translation Profile: Retention: 86400 seconds Replay Initiation Time: 300 seconds Drain timeout: Stop option: Session State Consistency: DYNAMIC GSM Flags: 0 Service is enabled Preferred instances: woo1,woo2 Available instances: CSS critical: no Service uses Java: false
四、檢查剛才建立的服務
SQL> select name,service_id from dba_services where name ='server_taf'; NAME SERVICE_ID --------------- ---------- server_taf 3
五、檢查服務配置
SQL> col name format a15 SQL> col failover_method format a11 heading 'METHOD' SQL> col failover_type format a10 heading 'TYPE' SQL> col failover_retries format 9999999 heading 'RETRIES' SQL> col goal format a10 SQL> col clb_goal format a8 SQL> col AQ_HA_NOTIFICATIONS format a5 heading 'AQNOT' SQL> select name, failover_method, failover_type, failover_retries,goal, clb_goal,aq_ha_notifications 2 from dba_services where service_id = 3; NAME METHOD TYPE RETRIES GOAL CLB_GOAL AQNOT --------------- ----------- ---------- -------- ---------- -------- ----- server_taf 0 NONE LONG NO
六、修改故障轉移引數策略
[oracle@ora19crac1 ~]$ srvctl modify service -d woo -s server_taf -m BASIC -e SELECT -q TRUE -j LONG [oracle@ora19crac1 ~]$ srvctl config service -d woo Service name: server_taf Server pool: Cardinality: 2 Service role: PRIMARY Management policy: AUTOMATIC DTP transaction: false AQ HA notifications: true Global: false Commit Outcome: false Failover type: SELECT Failover method: BASIC Failover retries: Failover delay: Failover restore: NONE Connection Load Balancing Goal: LONG Runtime Load Balancing Goal: NONE TAF policy specification: BASIC Edition: Pluggable database name: Hub service: Maximum lag time: ANY SQL Translation Profile: Retention: 86400 seconds Replay Initiation Time: 300 seconds Drain timeout: Stop option: Session State Consistency: DYNAMIC GSM Flags: 0 Service is enabled Preferred instances: woo1,woo2 Available instances: CSS critical: no Service uses Java: false
七、再次檢查服務,我們可以看到值都有了
SQL> col name format a15 SQL> col failover_method format a11 heading 'METHOD' SQL> col failover_type format a10 heading 'TYPE' SQL> col failover_retries format 9999999 heading 'RETRIES' SQL> col goal format a10 SQL> col clb_goal format a8 SQL> col AQ_HA_NOTIFICATIONS format a5 heading 'AQNOT' SQL> select name, failover_method, failover_type, failover_retries,goal, clb_goal,aq_ha_notifications 2 from dba_services where service_id = 3; NAME METHOD TYPE RETRIES GOAL CLB_GOAL AQNOT --------------- ----------- ---------- -------- ---------- -------- ----- server_taf BASIC SELECT 0 NONE LONG YES
八、檢查服務是否有註冊到監聽
[oracle@ora19crac1 ~]$ lsnrctl services LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 19-MAR-2020 16:58:22 Copyright (c) 1991, 2019, Oracle. All rights reserved. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) Services Summary... …… Service "server_taf" has 1 instance(s). Instance "woo1", status READY, has 1 handler(s) for this service... Handler(s): "DEDICATED" established:0 refused:0 state:ready LOCAL SERVER Service "woo" has 1 instance(s). Instance "woo1", status READY, has 1 handler(s) for this service... Handler(s): "DEDICATED" established:0 refused:0 state:ready LOCAL SERVER …… The command completed successfully
十、測試
SQL> col host_name format a11; SQL> select instance_name,host_name from v$instance; INSTANCE_NAME HOST_NAME ---------------- ----------- woo2 ora19crac2
十一、新開一個視窗關閉這個例項
SQL> shut abort ORACLE instance shut down.
十二、查詢可以正常進行,但是會有短暫的鎖住現象
SQL> col host_name format a11; SQL> select instance_name,host_name from v$instance; INSTANCE_NAME HOST_NAME ---------------- ----------- woo2 ora19crac2
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20674423/viewspace-2681278/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SpringBoot+redis配置及測試Spring BootRedis
- 平臺配置及測試錯誤提示及解決方案
- 物理DataGuard客戶端無縫切換--客戶端TAF 配置客戶端
- Oracle 19c Broker配置Oracle
- 19c安裝配置
- 性格及智商測試
- Redis哨兵模式配置測試Redis模式
- 效能測試工具JMeter的安裝及環境配置--Windows和LinuxJMeterWindowsLinux
- LOAD_BALANCE&TAF總結
- 黑盒測試策略及測試範圍(web端)Web
- zuul超時及重試配置Zuul
- 騰訊出品小程式自動化測試框架【Minium】系列(二)專案配置及測試套件使用說明框架套件
- phpstorm hyperf單元測試配置PHPORM
- SpringBoot lombok配置單元測試Spring BootLombok
- vue測試安裝和配置Vue
- 7:OracleRAC安裝配置(19C)Oracle
- Oracle LOAD_BALANCE&TAF總結Oracle
- Android + Appium 自動化測試完整的環境配置及程式碼詳解AndroidAPP
- JavaScript單元測試及原理JavaScript
- 常見埠及安全測試
- Cmocka 單元測試配置與使用Mock
- Windows配置Delve的測試環境Windows
- JB的測試之旅-Linux下配置Linux
- AI應用測試及挑戰AI
- Jmeter(免費測試介面及使用)JMeter
- griffin環境搭建及功能測試
- 軟體測試技術及工具
- Alluxio+HDFS+MapReduce整合及測試UX
- gRPC-web現狀及測試RPCWeb
- Rust效能分析之測試及火焰圖,附(lru,lfu,arc)測試Rust
- fixtrue基礎之測試初始化及測試後清理操作
- Pytest單元測試框架生成HTML測試報告及優化框架HTML測試報告優化
- 測試測試測試測試測試測試
- 滲透測試系統kali配置源
- 軟體測試學習教程——JDBC配置JDBC
- Jmeter下載安裝配置---測試小白JMeter
- 通過 docker 學習 nginx,附全部配置及 API 測試,可使用 apifox 直接開啟DockerNginxAPI
- ogg for oracle 19c 非cdb安裝配置Oracle