我一直在阅读有关 Oracle jdbc 驱动程序的implicitCachingEnabled 和 MaxStatements 的内容。
我尝试将implicitCachingEnabled =“true”添加到server.xml中作为数据源定义,但这没有什么区别。
我还注意到很久以前的其他帖子,人们未能通过在 tomcat 配置文件中设置此设置来使其正常工作。
那么万一有人让它工作,有什么窍门吗?
与此同时,我将调查是否可以通过代码来完成此操作,但我们正在使用 JPA,所以我不确定这将如何工作!
谢谢,
担
I've been reading about implicitCachingEnabled and MaxStatements with the oracle jdbc driver.
I've tried adding implicitCachingEnabled="true" into the server.xml for the datasource definition but it makes no difference.
I've also noted other posts admittedly from a long time ago, where people have failed to get this setting to work simply by setting it in the tomcat config files.
So just on the offchance someone has it working, is there a trick to it?
In the mean time i'll investigate whether it's possible or not to do this via code, but we're using JPA so i'm not sure how that'll work!
Thanks,
Dan
发布评论
评论(1)
尝试设置值 OracleConnection.setStatementCacheSize () 而不是 MaxStatements
http://www.stanford.edu/dept/itss/docs/oracle/10g/java.101/b10979/stmtcach.htm
Try to set the value OracleConnection.setStatementCacheSize () instead of MaxStatements
http://www.stanford.edu/dept/itss/docs/oracle/10g/java.101/b10979/stmtcach.htm