2017-04-10 52 views
0

我需要知道什麼是連接緩存屬性,即使用Oracle 11g企業版和Express Edition,Hibernate和HikariCP。在Oracle中使用Hikaricp緩存屬性

我把我的hibernate.cfg這些特性,但我得到一個異常:

<property name="hikari.dataSource.cachePrepStmts">true</property> 
    <property name="hikari.dataSource.prepStmtCacheSize">250</property> 
    <property name="hikari.dataSource.prepStmtCacheSqlLimit">2048</property> 
    <property name="hikari.dataSource.useServerPrepStmts">true</property> 

回答

0

這些屬性是MySQL的性能; Oracle是不同的。請嘗試:

<property name="hikari.dataSource.implicitCachingEnabled">true</property> 
<property name="hikari.dataSource.maxStatements">250</property> 

有關詳細信息,請參閱this page