2017-04-10 55 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