comment to Oracle中dblink所产生远程会话的一些表现

1 comment to Oracle中dblink所产生远程会话的一些表现

  • How To Remove a Dead Connection to the Target Database Through DBlink After a Network Connection Failure
    Applies to:
    Oracle Net Services – Version: 8.1.7 to 9.2
    Information in this document applies to any platform.
    Goal
    This document describe how you can remove a dead connection to the remote database through dblink after a network connection failure with the remote database server.
    Solution

    1. Please set (ENABLE=BROKEN) in the connect string for the target database in the tnsnames.ora file at the origin or source database ORACLE_HOME\network\admin or TNS_ADMIN directory.

    E.g.
    TEST.WORLD =
    (DESCRIPTION =
    (ENABLE=BROKEN)
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = < >)(PORT = < >))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = DISCARD.WORLD)
    ) )
    2. Please create the dblink using this connect string.
    3. Please set the OS tcp/ip keepalive parameter in the local databse to a desired low value (e.g. 5 minutes).

    Please note that in the case of a database link, the target destination of the link constitutes the server side of the connection. So it is not possible to use the DCD to close the database link from the origin database server in case of a network failure.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值