<datasource>
<dbname>bspf</dbname>
<loadmetadata>false</loadmetadata>
<jndiName>ds0_datasource_jndiname</jndiName>
<autoprimarykey>false</autoprimarykey>
<cachequerymetadata>false</cachequerymetadata>
<driver>oracle.jdbc.driver.OracleDriver</driver>
<url>jdbc:oracle:thin:@//10.0.15.51:1521/orcl</url>
<username>testpdp1</username>
<password>testpdp1</password>
<txIsolationLevel>READ_COMMITTED</txIsolationLevel>
<nativeResults>true</nativeResults>
<poolPreparedStatements>false</poolPreparedStatements>
<initialConnections>2</initialConnections>
<minimumSize>50</minimumSize>
<maximumSize>50</maximumSize>
<!--控制connection达到maximumSize是否允许再创建新的connection
true:允许,缺省值
false:不允许-->
<maximumSoft>false</maximumSoft>
<!--
是否检测超时链接(事务超时链接)
true-检测,如果检测到有事务超时的链接,系统将强制回收(释放)该链接
false-不检测,默认值
-->
<removeAbandoned>false</removeAbandoned>
<!--
链接使用超时时间(事务超时时间)
单位:秒
-->
<userTimeout>50</userTimeout>
<!--
系统强制回收链接时,是否输出后台日志
true-输出,默认值
false-不输出
-->
<logAbandoned>false</logAbandoned>
<!--
数据库会话是否是readonly,缺省为false
-->
<readOnly>true</readOnly>
<!--
对应属性:timeBetweenEvictionRunsMillis
the amount of time (in milliseconds) to sleep between examining idle objects for eviction
-->
<skimmerFrequency>120000</skimmerFrequency>
<!--对应于minEvictableIdleTimeMillis 属性:
minEvictableIdleTimeMillis the minimum number of milliseconds
an object can sit idle in the pool before it is eligable for evcition
单位:秒
空闲链接回收时间,空闲时间超过指定的值时,将被回收
-->
<connectionTimeout>240000</connectionTimeout>
<!--
numTestsPerEvictionRun
the number of idle objects to
examine per run within the idle object eviction thread (if any)
每次回收的链接个数
-->
<shrinkBy>5</shrinkBy>
<testWhileidle>true</testWhileidle>
<keygenerate>composite</keygenerate>
<debugging>true</debugging>-->
<!-- 请求链接时等待时间,单位:秒
客服端程序请求链接等待时间超过指定值时,后台包等待超时异常
-->
<maxWait>60</maxWait>
<validationQuery>select 1 from dual</validationQuery>
<RETURN_GENERATED_KEYS>false</RETURN_GENERATED_KEYS>
</datasource>