熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> Java核心技術 >> 正文

JDBC連接RAC的配置源代碼剖析

2022-06-13   來源: Java核心技術 

  <JDBCConnectionPool
       Name=oracleRACPool
       DriverName=oraclejdbcclientOracleDataSource
       InitialCapacity=
       LoginDelaySeconds=
       MaxCapacity=
       Password={DES}Ifjvh+nI=
       Properties=user=SCOTT
       CountOfTestFailuresTillFlush=
       ConnectionReserveTimeoutSeconds=
       KeepXAConnTillTXComplete=true
       RefreshMinutes=
       TestConnectionsOnReserve=true
       TestTableName=dual
       PreparedStatementCacheSize=
       Targets=myCluster
       URL=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=
       (ADDRESS=(PROTOCOL=TCP)(HOST=host)(PORT=))
       (ADDRESS=(PROTOCOL=TCP)(HOST=host)(PORT=))
       (FAILOVER=yes)(LOAD_BALANCE=no)(CONNECT_DATA=(SERVER=DEDICATED)
       (SERVICE_NAME=)))
       />
  
  <JDBCTxDataSource
       JNDIName=oracleRACDataSource
       Name=oracleRACDataSource
       PoolName=oracleRACPool
       Targets=myCluster
       />
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26685.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.