简体   繁体   English

OracleDataSource,Oracle UCP,Commons DBCP和Tomcat连接池之间的区别?

[英]Difference between OracleDataSource , Oracle UCP, Commons DBCP and Tomcat Connection Pool?

I read a few links on stackoverflow, mkyong and offical docs of Tomcat JDBC Pool. 我在Tomcat JDBC池的stackoverflow,mkyong和官方文档上阅读了一些链接。 And I am too confused. 我太糊涂了。

Points to be Noted: 要点:

1) I understand Oracle Universal Connection Pooling is a new concept and is unstable. 1)我理解Oracle通用连接池是一个新概念并且不稳定。 In this link the person asks about OracleDataSource (please note it) Link1 在这个链接中,该人询问OracleDataSource (请注意) Link1

2) So Lets say UCP is totally different. 2)所以让我们说UCP是完全不同的。 Now Mkyong(RESPECT) has this tutorial available. 现在Mkyong(RESPECT)有本教程。 Link2 LINK2

3) And then there is this Link on Tomcat's offical Docs Link3 3)然后在Tomcat的官方Docs Link3上有这个链接

What is or is there a difference between OracleDataSource and Commons DBCP ? OracleDataSourceCommons DBCP之间有什么区别? Is it something like we configure OracleDataSource using Commons DBCP 是否类似于我们使用Commons DBCP配置OracleDataSource

What method of Datasource Pool Configuration is MKYONG Using? MKYONG使用什么方法的数据源池配置?

And what is Tomcat JDBC Connection Pool? 什么是Tomcat JDBC连接池? Link4 链路4

You need to read some more up to date documentation. 您需要阅读更多最新文档。

UCP is neither new nor unstable. UCP既不新也不不稳定。

The OracleDataSource is how you connect to the Oracle database from Java. OracleDataSource是您从Java连接到Oracle数据库的方式。

Commons DBCP is a database connection pool. Commons DBCP是一个数据库连接池。

Yes, you would/could use Commons DBCP to pool connections from an OracleDataSource. 是的,您可以/可以使用Commons DBCP来汇集来自OracleDataSource的连接。

MKYOUNG is using Commons DBCP. MKYOUNG正在使用Commons DBCP。 Tomcat automatically uses Commons DBCP for all DataSources. Tomcat自动将Commons DBCP用于所有DataSource。

Tomcat JDBC is an alternative to connection pool. Tomcat JDBC是连接池的替代方案。 It has significant advantages in multi-threaded environments compared to Commons DBCP 1.x. 与Commons DBCP 1.x相比,它在多线程环境中具有显着优势。 When compared to Commons DBCP 2.x the differences are much smaller. 与Commons DBCP 2.x相比,差异要小得多。 Between the two I'd recommend Commons DBCP 2.x by default - it appears to be more actively maintained. 在这两者之间,我建议默认使用Commons DBCP 2.x - 它似乎更积极地维护。

UCP(Universal Connection Pool) has been around since 11.1.0.7. UCP(通用连接池)自11.1.0.7开始出现。 UCP along with RAC, RAC One and ADG is a tested and certified combination for handling database failovers. UCP与RAC,RAC One和ADG是经过测试和认证的组合,用于处理数据库故障转移。 For more details on UCP, refer to UCP Developer's guide . 有关UCP的更多详细信息,请参阅UCP开发人员指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM