jdbc連rac範例

安佰勝發表於2010-10-11

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

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


 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13177610/viewspace-675717/,如需轉載,請註明出處,否則將追究法律責任。

相關文章