Oracle Connection Pooling

Posted on 2005-05-14
Last Modified: 2012-08-13

I'm not sure question should be in java section, but since it's used in java development, here goes:

I would like to know the exact difference between using OracleDataSource and OraclePooledConnection versus OracleConnectionCacheManager

From what I've heard, the first implementation only uses 1 physical connection but many logical connections. The OracleConnectionCacheManager uses many physical connections.

Is this true? What would be best solution for connection pooling on an Oracle 10g database?

Question by:whiteeagl
    LVL 13

    Expert Comment

    Hi rosshind,

    Well, frankly I don't know what is the difference between those, but I recommend to configure the Connection pool based on ur application server connection pooling, in other words use the datasource services provided by the application server u use, this is always the optimal way

    LVL 13

    Expert Comment


    > Hi rosshind,
    sorry I mean Hi whiteeagl :)

    Author Comment

    We are not using a specific application server (like OAS/IAS). We are developping it ourselves in java. This is why I need to know the difference and be able to manage it.

    LVL 16

    Accepted Solution

    Here is the site that explain the Oracle Pooling and Oracle Caching, and their difference.

    Although this site is for 9.2, but the concept is also applicable for 10g, except OracleConnectionCacheManager class is for 10g only.

    Author Comment

    Thanks for the info.

    Do you know if one use is better than another on the server side of a 3-tier architecture?

    We have about 20 clients connecting 24/24 to the server.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Live - One-on-One Java Help from Top Experts

    Solve your toughest problems, fast.
    Java experts are online now and ready to help you.

    Suggested Solutions

    INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now