Oracle Objects for OLE C++ Class Library
Release 9.2

Part Number A95896-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback

GetDatabaseFromPool Method

Applies To

OSession

Description

This method gets a database from the pool.

Usage

ODatabase GetDatabaseFromPool (long waitTime);

Arguments

waitTime
Wait time in milliseconds
Remarks

An OIP error 4148-Unable to obtain a free database object from the pool will be generated if a database cannot be obtained with the specified waitTime.

Return Value

An ODatabase object.

Example

This example creates a pool of 2 connections with a maximum of 10 connections, and then gets a database from the pool.

OSession osess;

osess.Open();

osess.CreateDatabasePool(2,10,200, "Exampledb",

"scott", "tiger", ODATABASE_DEFAULT);

odb = sess1.GetDatabaseFromPool(5000); //Get database

from pool


 
Oracle
Copyright © 1998, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback