内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

oracle中怎么配置及測試TAF

這篇文章主要介紹“oracle中怎么配置及測試TAF”,在日常操作中,相信很多人在oracle中怎么配置及測試TAF問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”oracle中怎么配置及測試TAF”的疑惑有所幫助!接下來,請跟著小編一起來學(xué)習(xí)吧!

網(wǎng)站的建設(shè)創(chuàng)新互聯(lián)專注網(wǎng)站定制,經(jīng)驗(yàn)豐富,不做模板,主營網(wǎng)站定制開發(fā).小程序定制開發(fā),H5頁面制作!給你煥然一新的設(shè)計(jì)體驗(yàn)!已為成都社區(qū)文化墻等企業(yè)提供專業(yè)服務(wù)。

一、添加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 運(yùn)行狀態(tài)

[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

四、檢查剛才創(chuàng)建的服務(wù)

SQL> select name,service_id from dba_services where name ='server_taf';
 
NAME            SERVICE_ID
--------------- ----------
server_taf               3

五、檢查服務(wù)配置

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

六、修改故障轉(zhuǎn)移參數(shù)策略

[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

七、再次檢查服務(wù),我們可以看到值都有了

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

八、檢查服務(wù)是否有注冊到監(jiān)聽

[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

十一、新開一個窗口關(guān)閉這個實(shí)例

SQL> shut abort
ORACLE instance shut down.

十二、查詢可以正常進(jìn)行,但是會有短暫的鎖住現(xiàn)象

SQL> col host_name format a11;
SQL> select instance_name,host_name from v$instance;
 
INSTANCE_NAME    HOST_NAME
---------------- -----------
woo2             ora19crac2

到此,關(guān)于“oracle中怎么配置及測試TAF”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬?shí)用的文章!

網(wǎng)頁題目:oracle中怎么配置及測試TAF
分享URL:http://www.rwnh.cn/article30/igjeso.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供靜態(tài)網(wǎng)站服務(wù)器托管、手機(jī)網(wǎng)站建設(shè)、虛擬主機(jī)定制開發(fā)、定制網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

手機(jī)網(wǎng)站建設(shè)
彝良县| 定襄县| 定日县| 渭源县| 汨罗市| 安吉县| 神农架林区| 永登县| 湛江市| 南靖县| 恭城| 西宁市| 威宁| 武平县| 榆树市| 东平县| 伊春市| 永昌县| 东台市| 博罗县| 南陵县| 昆山市| 开阳县| 修水县| 承德市| 翁源县| 棋牌| 安溪县| 宁明县| 鄂温| 宁南县| 海城市| 江津市| 西丰县| 河曲县| 伊金霍洛旗| 瑞丽市| 临高县| 遂宁市| 米易县| 凤山市|