首页 > 开发 > 综合 > 正文

JDBC连接RAC的配置-one example

2024-07-21 02:11:29
字体:
来源:转载
供稿:网友

<jdbcconnectionpool
         name="oracleracpool"
         drivername="oracle.jdbc.client.oracledatasource"
         initialcapacity="5"
         logindelayseconds="1"
         maxcapacity="5"
         password="{3des}i5fj3vh4+ni="
         properties="user=scott"
         countoftestfailurestillflush="1"
         connectionreservetimeoutseconds="120"
         keepxaconntilltxcomplete="true"
         refreshminutes="5"
         testconnectionsonreserve="true"
         testtablename="dual"
         preparedstatementcachesize="15"
         targets="mycluster"
         url="jdbc:oracle:thin:@(description=(address_list=
         (address=(protocol=tcp)(host=host1)(port=1521))
         (address=(protocol=tcp)(host=host2)(port=1521))
         (failover=yes)(load_balance=no)(connect_data=(server=dedicated)
         (service_name=dbservice.company.com)))"
         />

<jdbctxdatasource
         jndiname="oracle-rac-datasource"
         name="oracle-rac-datasource"
         poolname="oracleracpool"
         targets="mycluster"
         />


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表