【问题标题】:Caching properties using Hikaricp in Oracle在 Oracle 中使用 Hikaricp 缓存属性
【发布时间】:2017-09-06 03:29:07
【问题描述】:

我需要知道什么是连接缓存属性,我使用的是 Oracle 11g Enterprise Edition 和 Express Edition、Hibernate 和 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>

【问题讨论】:

    标签: java oracle hibernate oracle11g hikaricp


    【解决方案1】:

    这些属性是 MySQL 属性;甲骨文不同。试试:

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

    详情请见this page

    【讨论】:

    • 就我而言,这些属性不起作用。我不得不改用 dataSource.oracle.jdbc.implicitStatementCacheSize
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-03-27
    • 1970-01-01
    • 1970-01-01
    • 2011-09-14
    • 1970-01-01
    • 2016-04-01
    • 1970-01-01
    相关资源
    最近更新 更多