首页 > Linux操作系统 > Linux操作系统 > jdbc连rac范例
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)))"
/>
name="oracle-rac-datasource"
poolname="oracleracpool"
targets="mycluster"
/>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13177610/viewspace-675717/ ,如需转载,请注明出处,否则将追究法律责任。