服务热线:13616026886

技术文档 欢迎使用技术文档,我们为你提供从新手到专业开发者的所有资源,你也可以通过它日益精进

位置:首页 > 技术文档 > JAVA > 新手入门 > 基础入门 > 查看文档

jdbc连接rac的配置源代码剖析


  <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"
       />

扫描关注微信公众号