Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: connection pooling from an application server to oracle
From 9i on, application servers can actually make use of the connection
pooling and session pooling features within OCI instead of implementing
their own.
An interesting concept is how the 9i OCI API separates the notion of session pooling from connection pooling. You can have multiple session pools and multiple connection pools at the same time in an environment. A session pool is a pool of user handles. A connection pool is a pool of server handles. A session pool on top of a single physical connection means you can multiplex multiple sessions on a single connection by switching in and out of different transaction contexts. What's neater is having a session pool on top of a connection pool. You can multiplex say 10 sessions on top of 5 physical connections. Each time you obtain a session, you specify which session pool and which connection pool you want to use.
Also, I believe that the client can store a pointer to a transaction context on the server side. This means you don't need to tie a physical connection to a transaction. You can use a different physical connection for each step of a transaction simply by passing it the pointer to the transaction context corresponding to that transaction.
I think the JDBC driver has connection pooling also, but not session pooling. OCCI might have both. But I haven't checked.
BTW, connection pooling and session pooling are new features in the 9i OCI. The 8i OCI does not have these features.
Regards,
Dave
vadim.gorbounov_at_sigma-systems.com wrote:
> Mladen,
> Probably, something is very wrong with application design.
>
>
>>With iPlanet, it looks like this: >>Application invokes bean, pumpkin or servlet which has something to do >>with oracle. The app server pooling mechanism will allocate one of the >>already established dedicated server connections, which will perform the >>work. When the same user executes another vegetable (EJB or servlet), he >>or she may do so within a different dedicated server connection. We have a >>situation in which a single user utilizes several dedicated server
>>within a single logical screen.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: David Hau INET: davehau123_at_netscape.net Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Dec 15 2003 - 18:54:34 CST