设置预取行大小

时间:2011-10-13 08:31:47

标签: java oracle jboss

如何在oracle连接url或jboss数据源文件中设置预取大小?

<datasources>
<local-tx-datasource>
    <use-java-context>false</use-java-context>
    <jndi-name>dsDS</jndi-name>
    <min-pool-size>1</min-pool-size>
    <max-pool-size>10</max-pool-size>
    <local-transaction/>
    <user-name>*</user-name>
    <password>*</password>
    <driver-class>oracle.jdbc.OracleDriver</driver-class>
    <connection-url></connection-url>
    <connection-property name="SetBigStringTryClob">true</connection-property>
    <valid-connection-checker-class-name> org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker </valid-connection-checker-class-name>
    <exception-sorter-class-name> org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter </exception-sorter-class-name>
<track-statements>false</track-statements>
</local-tx-datasource>

1 个答案:

答案 0 :(得分:0)

我已设法通过oracle连接设置预取大小。我必须通过jboss托管连接获得底层连接,将其转换为oracle连接并在该类中设置预取大小。