DCD: Dead Connection Detection ,可以用于檢測(cè)、標(biāo)記僵死而沒有斷開會(huì)session,再由PMON進(jìn)行清理,釋放資源。
開啟DCD,只需要在服務(wù)端的sqlnet.ora文件中添加SQLNET.EXPIRE_TIME參數(shù),單位為分鐘:
我們提供的服務(wù)有:成都網(wǎng)站制作、成都做網(wǎng)站、微信公眾號(hào)開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、衡陽縣ssl等。為1000多家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的衡陽縣網(wǎng)站制作公司
SQLNET.EXPIRE_TIME = 10 |
如果時(shí)間達(dá)到這個(gè)值,server端就是發(fā)出一個(gè)”probe” packet 給客戶端,如要客戶斷是正常的,這個(gè)packet就被忽略,timer重新計(jì)時(shí);如果客戶端異常中斷,則server端就會(huì)收到一個(gè)消息,用以釋放連接。
DCD還可以用于防止防火墻的timeout,例如:
某個(gè)系統(tǒng)RMAN備份,在結(jié)束時(shí),報(bào):
released channel: dev_0 released channel: dev_1 released channel: dev_2 released channel: dev_3 released channel: dev_4 released channel: dev_5 released channel: dev_6 released channel: dev_7 released channel: dev_8 released channel: dev_9 released channel: dev_10 released channel: dev_11 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-06004: ORACLE error from recovery catalog database: ORA-03135: connection lost contact ORACLE error from recovery catalog database: ORA-03114: not connected to ORACLE |
參考文章(ID 729811.1):
+ Is the rman catalog Database running on a different system than the Target Database? If so, verify with the System Administrators what the TCP/IP timeout is set to. If there is any firewall between two systems, set the value of SQLNET.EXPIRE_TIME to less than the TCP timeout value of the firewall. + Increase the value of SQLNET.EXPIRE_TIME in the sqlnet.ora file on both target servers if no firewall exists between two systems. + Increase the value of keepalive interval. |
以上這個(gè)RMAN報(bào)錯(cuò)例子就是由于防火墻設(shè)置timeout原因,當(dāng)client和server在timeout時(shí)間內(nèi)沒有數(shù)據(jù)傳輸?shù)臅r(shí)候,會(huì)話就會(huì)被防火墻斷開。而設(shè)置SQLNET.EXPIRE_TIME參數(shù),使其小于防火墻的timeout時(shí)間,就可以避免這一情況的發(fā)生。
網(wǎng)站題目:SQLNET.EXPIRE_TIME參數(shù)—之防火墻短連接
當(dāng)前地址:http://chinadenli.net/article2/pddsoc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供做網(wǎng)站、搜索引擎優(yōu)化、動(dòng)態(tài)網(wǎng)站、云服務(wù)器、網(wǎng)站維護(hù)、品牌網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)