2011-10-13 74 views
1

如何在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> 

回答

0

我已成功通過Oracle連接設置預取大小。我必須通過jboss託管連接獲得底層連接,將其轉換爲oracle連接並在該類中設置預取大小。