Print Thread
Info on DOA Session Pooling
#1330 12/04/00 08:41 PM
Joined: Dec 2000
Posts: 20
usa
D
Member
OP Offline
Member
D
Joined: Dec 2000
Posts: 20
usa
I cannot use MTS pooling because some of
my clients use oracle 7.3. Can I use the
internal DOA pooling and if so, how. I have
a single application which produces a session for each connect and then closes it. I can find no documentation other than throw the switch.

Re: Info on DOA Session Pooling
#1331 12/05/00 06:39 PM
Joined: Aug 1999
Posts: 22,221
Member
Offline
Member
Joined: Aug 1999
Posts: 22,221
There is a help topic about this, which says a little bit more than "throw the switch":

This property indicates that a session should be obtained from a session pool. The session pool will either be managed internally in the application, or it will be managed by the Oracle Service for MTS. This can be useful if you need to frequently create and free TOracleSession instances, but can't afford to make new database connections every time because of performance consequences.

This option is most useful in an MTS (Microsoft Transaction Server) environment, because a TMTSDataModule and TMTSAutoObject instances are continuously created and destroyed by the MTS Server between client requests, and any TOracleSession that is owned by this instance will also be created and destroyed. This would imply that each request would cause a database logon and logoff. To prevent this, you can set the Pooling property to one of the following values:

spInternal - The database sessions will be pooled internally by Direct Oracle Access.
spMTS - The database session will be pooled by the Oracle Service for MTS. This service is only available for Oracle8i and later, and is a requirement if you want to use spMTS.

Each time a TOracleSession instance is logged on, it will attempt to reuse a database session from the pool. If there are no sessions available, a new session will be created. When the TOracleSession instance is logged off, the database session will be released into the pool. Make sure that you commit or rollback your updates before logging off the session, unless it is enlisted in an MTS transaction!

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: Info on DOA Session Pooling
#1332 01/04/01 04:25 AM
Joined: Jul 2000
Posts: 12
Atlanta, GA USA
D
Member
Offline
Member
D
Joined: Jul 2000
Posts: 12
Atlanta, GA USA
Yea, I had a question about this too. So basically, if you aren't using Oracle 8i (we're using 8.05), connection pooling isn't an option? Correct?


----------
Jay
Re: Info on DOA Session Pooling
#1333 01/04/01 04:49 PM
Joined: Aug 1999
Posts: 22,221
Member
Offline
Member
Joined: Aug 1999
Posts: 22,221
Connection pooling is possible (Pooling = spInternal), but you can't use the Oracle Services for MTS (Pooling = spMTS) because it is an 8i feature.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.091s Queries: 12 (0.064s) Memory: 2.5108 MB (Peak: 3.0431 MB) Data Comp: Off Server Time: 2024-05-20 10:50:30 UTC
Valid HTML 5 and Valid CSS