JDBC连接RAC的配置-one example

1<jdbcconnectionpool connectionreservetimeoutseconds="120" countoftestfailurestillflush="1" drivername="oracle.jdbc.client.OracleDataSource" initialcapacity="5" keepxaconntilltxcomplete="true" logindelayseconds="1" maxcapacity="5" name="oracleRACPool" password="{3DES}I5fj3vh4+nI=" preparedstatementcachesize="15" properties="user=SCOTT" refreshminutes="5" targets="myCluster" testconnectionsonreserve="true" testtablename="dual" url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=   
2(ADDRESS=(PROTOCOL=TCP)(HOST=host1)(PORT=1521))   
3(ADDRESS=(PROTOCOL=TCP)(HOST=host2)(PORT=1521))   
4(FAILOVER=yes)(LOAD_BALANCE=no)(CONNECT_DATA=(SERVER=DEDICATED)   
5(SERVICE_NAME=dbservice.company.com)))"></jdbcconnectionpool>
1<jdbctxdatasource jndiname="oracle-RAC-DataSource" name="oracle-RAC-DataSource" poolname="oracleRACPool" targets="myCluster"></jdbctxdatasource>
Published At
Categories with 数据库类
comments powered by Disqus